Skip to content

Commit cbd4ac1

Browse files
committed
Inclusao de custom view, e alterações da RegistryCell para dar espaçamento entre as celulas
1 parent 2087e19 commit cbd4ac1

File tree

7 files changed

+84
-48
lines changed

7 files changed

+84
-48
lines changed

TesteiOSV2_Rafael_Hieda/TesteiOSV2_Rafael_Hieda.xcodeproj/project.pbxproj

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,7 @@
3636
E3D077C12186B38D001206FF /* AccountBalanceViewController.swift in Sources */ = {isa = PBXBuildFile; fileRef = E3D077C02186B38D001206FF /* AccountBalanceViewController.swift */; };
3737
E3D077C32186B708001206FF /* RegistryCell.xib in Resources */ = {isa = PBXBuildFile; fileRef = E3D077C22186B708001206FF /* RegistryCell.xib */; };
3838
E3D077C52186BF50001206FF /* RegistryTableViewCell.swift in Sources */ = {isa = PBXBuildFile; fileRef = E3D077C42186BF50001206FF /* RegistryTableViewCell.swift */; };
39+
E3D077C92186CF29001206FF /* CustomView.swift in Sources */ = {isa = PBXBuildFile; fileRef = E3D077C82186CF29001206FF /* CustomView.swift */; };
3940
/* End PBXBuildFile section */
4041

4142
/* Begin PBXContainerItemProxy section */
@@ -99,6 +100,7 @@
99100
E3D077C02186B38D001206FF /* AccountBalanceViewController.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = AccountBalanceViewController.swift; sourceTree = "<group>"; };
100101
E3D077C22186B708001206FF /* RegistryCell.xib */ = {isa = PBXFileReference; lastKnownFileType = file.xib; path = RegistryCell.xib; sourceTree = "<group>"; };
101102
E3D077C42186BF50001206FF /* RegistryTableViewCell.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = RegistryTableViewCell.swift; sourceTree = "<group>"; };
103+
E3D077C82186CF29001206FF /* CustomView.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = CustomView.swift; sourceTree = "<group>"; };
102104
/* End PBXFileReference section */
103105

104106
/* Begin PBXFrameworksBuildPhase section */
@@ -293,6 +295,7 @@
293295
E3D077C72186CDA8001206FF /* Views */ = {
294296
isa = PBXGroup;
295297
children = (
298+
E3D077C82186CF29001206FF /* CustomView.swift */,
296299
);
297300
path = Views;
298301
sourceTree = "<group>";
@@ -529,6 +532,7 @@
529532
E3D077BA21865325001206FF /* LoginViewController.swift in Sources */,
530533
E3D077BB21865325001206FF /* LoginInteractor.swift in Sources */,
531534
E330F9512184EE9F00CDEA48 /* AccountBalance.swift in Sources */,
535+
E3D077C92186CF29001206FF /* CustomView.swift in Sources */,
532536
E3D077B621865325001206FF /* LoginPresenter.swift in Sources */,
533537
E330F90A2184B0C800CDEA48 /* AppDelegate.swift in Sources */,
534538
E330F94F2184EC5700CDEA48 /* Registry.swift in Sources */,

TesteiOSV2_Rafael_Hieda/TesteiOSV2_Rafael_Hieda.xcworkspace/xcuserdata/rhieda.xcuserdatad/xcdebugger/Breakpoints_v2.xcbkptlist

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@
4242
ignoreCount = "0"
4343
continueAfterRunningActions = "No"
4444
filePath = "TesteiOSV2_Rafael_Hieda/Scenes/Balance/Cell/RegistryTableViewCell.swift"
45-
timestampString = "562482099.716314"
45+
timestampString = "562484448.90549"
4646
startingColumnNumber = "9223372036854775807"
4747
endingColumnNumber = "9223372036854775807"
4848
startingLineNumber = "14"

TesteiOSV2_Rafael_Hieda/TesteiOSV2_Rafael_Hieda/Base.lproj/Main.storyboard

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -159,6 +159,9 @@
159159
<button opaque="NO" contentMode="scaleToFill" contentHorizontalAlignment="center" contentVerticalAlignment="center" lineBreakMode="middleTruncation" translatesAutoresizingMaskIntoConstraints="NO" id="Nxn-yo-lwV">
160160
<rect key="frame" x="335" y="40" width="27" height="27"/>
161161
<state key="normal" image="logout 2"/>
162+
<connections>
163+
<segue destination="BYZ-38-t0r" kind="presentation" id="boX-50-zSa"/>
164+
</connections>
162165
</button>
163166
</subviews>
164167
<color key="backgroundColor" red="0.23137254900000001" green="0.28235294119999998" blue="0.93333333330000001" alpha="1" colorSpace="calibratedRGB"/>
@@ -191,19 +194,20 @@
191194
<constraint firstItem="Re9-Qz-r9X" firstAttribute="top" secondItem="Ju4-Ya-GIn" secondAttribute="top" constant="166" id="xou-Ta-Fne"/>
192195
</constraints>
193196
</view>
194-
<tableView clipsSubviews="YES" contentMode="scaleToFill" alwaysBounceVertical="YES" dataMode="prototypes" style="grouped" separatorStyle="default" rowHeight="-1" estimatedRowHeight="-1" sectionHeaderHeight="18" sectionFooterHeight="18" translatesAutoresizingMaskIntoConstraints="NO" id="lb6-0T-smP">
197+
<tableView clipsSubviews="YES" contentMode="scaleToFill" alwaysBounceVertical="YES" dataMode="prototypes" style="grouped" separatorStyle="none" rowHeight="-1" estimatedRowHeight="-1" sectionHeaderHeight="18" sectionFooterHeight="18" translatesAutoresizingMaskIntoConstraints="NO" id="lb6-0T-smP">
195198
<rect key="frame" x="0.0" y="232" width="375" height="436"/>
196199
<color key="backgroundColor" cocoaTouchSystemColor="groupTableViewBackgroundColor"/>
197200
<constraints>
198201
<constraint firstAttribute="height" constant="436" id="Kti-hj-DtL"/>
199202
<constraint firstAttribute="width" constant="375" id="t7v-bF-bxe"/>
200203
</constraints>
204+
<color key="separatorColor" white="1" alpha="1" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
201205
<prototypes>
202206
<tableViewCell clipsSubviews="YES" contentMode="scaleToFill" insetsLayoutMarginsFromSafeArea="NO" selectionStyle="blue" hidesAccessoryWhenEditing="NO" indentationLevel="1" indentationWidth="0.0" rowHeight="80" id="ZP7-L2-1vz">
203207
<rect key="frame" x="0.0" y="55.5" width="375" height="80"/>
204208
<autoresizingMask key="autoresizingMask"/>
205209
<tableViewCellContentView key="contentView" opaque="NO" clipsSubviews="YES" multipleTouchEnabled="YES" contentMode="center" insetsLayoutMarginsFromSafeArea="NO" tableViewCell="ZP7-L2-1vz" id="Ase-kJ-a7w">
206-
<rect key="frame" x="0.0" y="0.0" width="375" height="79.5"/>
210+
<rect key="frame" x="0.0" y="0.0" width="375" height="80"/>
207211
<autoresizingMask key="autoresizingMask"/>
208212
</tableViewCellContentView>
209213
</tableViewCell>

TesteiOSV2_Rafael_Hieda/TesteiOSV2_Rafael_Hieda/Scenes/Balance/AccountBalanceViewController.swift

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ class AccountBalanceViewController: UIViewController, UITableViewDelegate, UITab
3434
}
3535

3636
func tableView(_ tableView: UITableView, numberOfRowsInSection section: Int) -> Int {
37-
return 1
37+
return 2
3838
}
3939

4040
func tableView(_ tableView: UITableView, cellForRowAt indexPath: IndexPath) -> UITableViewCell {
@@ -46,6 +46,8 @@ class AccountBalanceViewController: UIViewController, UITableViewDelegate, UITab
4646
return "Recentes"
4747
}
4848

49+
50+
4951

5052
/*
5153
// MARK: - Navigation

0 commit comments

Comments
 (0)