Skip to content

Commit 44aa68d

Browse files
committed
调整 <新建项目>、<项目设置> 分割线样式
1 parent aead111 commit 44aa68d

8 files changed

Lines changed: 22 additions & 0 deletions

Coding_iOS/Controllers/NewProject/NewProject.storyboard

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -164,6 +164,10 @@
164164
<outlet property="projectImageView" destination="gEV-Jy-c1F" id="x8V-IM-hB3"/>
165165
<outlet property="projectNameTextField" destination="OKO-zA-KVd" id="SkF-dq-xhL"/>
166166
<outlet property="projectTypeLabel" destination="tDj-1q-N6c" id="jFN-K1-21p"/>
167+
<outletCollection property="lines" destination="tJL-8g-eb4" id="4Dq-tp-sf7"/>
168+
<outletCollection property="lines" destination="Y6Q-zu-L0B" id="hyU-kR-4CE"/>
169+
<outletCollection property="lines" destination="uGC-FM-hhP" id="DJv-Im-NbM"/>
170+
<outletCollection property="lines" destination="RlK-4C-fXR" id="12u-iJ-M9H"/>
167171
</connections>
168172
</tableViewController>
169173
<placeholder placeholderIdentifier="IBFirstResponder" id="f41-ib-nma" userLabel="First Responder" sceneMemberID="firstResponder"/>

Coding_iOS/Controllers/NewProject/NewProjectTypeViewController.m

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ - (void)viewDidLoad {
2121
[super viewDidLoad];
2222

2323
self.tableView.tableFooterView = [UIView new];
24+
[self.tableView setSeparatorColor:[UIColor colorWithRGBHex:0xe5e5e5]];
2425

2526
// 添加右上角按钮
2627
UIButton *submitButton = [UIButton buttonWithType:UIButtonTypeInfoLight];

Coding_iOS/Controllers/NewProject/NewProjectViewController.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,5 +15,6 @@
1515
@property (strong, nonatomic) IBOutlet UITextField *projectNameTextField;
1616
@property (strong, nonatomic) IBOutlet UILabel *projectTypeLabel;
1717
@property (strong, nonatomic) IBOutlet UIPlaceHolderTextView *descTextView;
18+
@property (strong, nonatomic) IBOutletCollection(NSLayoutConstraint) NSArray *lines;
1819

1920
@end

Coding_iOS/Controllers/NewProject/NewProjectViewController.m

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,11 @@ -(void)viewWillAppear:(BOOL)animated{
2828
- (void)viewDidLoad {
2929
[super viewDidLoad];
3030

31+
//
32+
for (NSLayoutConstraint *cons in self.lines) {
33+
cons.constant = 0.5;
34+
}
35+
3136
//
3237
self.tableView.tableFooterView = [UIView new];
3338
[self.tableView setSeparatorColor:[UIColor colorWithRGBHex:0xe5e5e5]];

Coding_iOS/Controllers/ProjectSetting/ProjectAdvancedSettingViewController.m

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@ - (void)viewDidLoad {
2525

2626
self.title = @"高级设置";
2727
self.tableView.tableFooterView = [UIView new];
28+
[self.tableView setSeparatorColor:[UIColor colorWithRGBHex:0xe5e5e5]];
2829
}
2930

3031
- (void)didReceiveMemoryWarning {

Coding_iOS/Controllers/ProjectSetting/ProjectSetting.storyboard

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -164,6 +164,10 @@
164164
<outlet property="descTextView" destination="sis-TG-0f8" id="aTT-Mv-rPy"/>
165165
<outlet property="projectImageView" destination="wnT-zR-nIE" id="4JP-FP-d6b"/>
166166
<outlet property="projectNameTextField" destination="1wU-rL-E1K" id="CGZ-z5-mw4"/>
167+
<outletCollection property="lines" destination="81D-Ss-W9I" id="knO-fi-sN1"/>
168+
<outletCollection property="lines" destination="aJc-kT-Rp8" id="8m6-ON-K1l"/>
169+
<outletCollection property="lines" destination="tbw-AN-t3X" id="JUv-MK-2Uc"/>
170+
<outletCollection property="lines" destination="mRc-s2-OL3" id="yux-r4-pOj"/>
167171
</connections>
168172
</tableViewController>
169173
<placeholder placeholderIdentifier="IBFirstResponder" id="XTZ-Sc-Qlw" userLabel="First Responder" sceneMemberID="firstResponder"/>

Coding_iOS/Controllers/ProjectSetting/ProjectSettingViewController.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,5 +19,7 @@
1919
@property (strong, nonatomic) IBOutlet UITextField *projectNameTextField;
2020
@property (strong, nonatomic) IBOutlet UIPlaceHolderTextView *descTextView;
2121

22+
@property (strong, nonatomic) IBOutletCollection(NSLayoutConstraint) NSArray *lines;
23+
2224

2325
@end

Coding_iOS/Controllers/ProjectSetting/ProjectSettingViewController.m

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,10 @@ @implementation ProjectSettingViewController
2626
- (void)viewDidLoad {
2727
[super viewDidLoad];
2828

29+
for (NSLayoutConstraint *cons in self.lines) {
30+
cons.constant = 0.5;
31+
}
32+
2933
//
3034
self.tableView.tableFooterView = [UIView new];
3135
[self.tableView setSeparatorColor:[UIColor colorWithRGBHex:0xe5e5e5]];

0 commit comments

Comments
 (0)