Skip to content

Commit 9a5d7b7

Browse files
committed
UI 优化
1 parent 05f9a5f commit 9a5d7b7

77 files changed

Lines changed: 188 additions & 161 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

Coding_iOS.xcodeproj/project.pbxproj

Lines changed: 168 additions & 148 deletions
Large diffs are not rendered by default.

Coding_iOS/Controllers/NProjectViewController/NProjectViewController.m

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ - (void)viewDidLoad{
5252
// 添加myTableView
5353
_myTableView = ({
5454
UITableView *tableView = [[UITableView alloc] initWithFrame:self.view.bounds style:UITableViewStyleGrouped];
55-
tableView.backgroundColor = [UIColor clearColor];
55+
tableView.backgroundColor = kColorTableSectionBg;
5656
tableView.dataSource = self;
5757
tableView.delegate = self;
5858
tableView.separatorStyle = UITableViewCellSeparatorStyleNone;

Coding_iOS/Controllers/NewProject/NewProjectTypeViewController.m

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -24,10 +24,13 @@ - (void)viewDidLoad {
2424
[self.tableView setSeparatorColor:[UIColor colorWithRGBHex:0xe5e5e5]];
2525

2626
// 添加右上角按钮
27-
UIButton *submitButton = [UIButton buttonWithType:UIButtonTypeInfoLight];
28-
[submitButton addTarget:self action:@selector(showHelpView) forControlEvents:UIControlEventTouchUpInside];
29-
UIBarButtonItem *submitButtonItem = [[UIBarButtonItem alloc] initWithCustomView:submitButton];
30-
self.navigationItem.rightBarButtonItem = submitButtonItem;
27+
// UIButton *submitButton = [UIButton buttonWithType:UIButtonTypeInfoLight];
28+
// [submitButton addTarget:self action:@selector(showHelpView) forControlEvents:UIControlEventTouchUpInside];
29+
// UIBarButtonItem *submitButtonItem = [[UIBarButtonItem alloc] initWithCustomView:submitButton];
30+
// self.navigationItem.rightBarButtonItem = submitButtonItem;
31+
32+
[self.navigationItem setRightBarButtonItem:[[UIBarButtonItem alloc] initWithImage:[UIImage imageNamed:@"info_Nav"] style:UIBarButtonItemStylePlain target:self action:@selector(showHelpView)] animated:NO];
33+
3134
}
3235

3336
-(void)showHelpView{

Coding_iOS/Controllers/ProjectSetting/ProjectAdvancedSettingViewController.m

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,9 @@ -(void)tableView:(UITableView *)tableView willDisplayCell:(UITableViewCell *)cel
6767

6868
-(void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath{
6969
[tableView deselectRowAtIndexPath:indexPath animated:YES];
70+
if (indexPath.row != 1) {
71+
return;
72+
}
7073

7174
static NSString *title = @"需要验证密码";
7275
static NSString *message = @"这是一个危险的操作,请提供登录密码确认!";

Coding_iOS/Controllers/RootControllers/Project_RootViewController.m

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -99,8 +99,11 @@ - (void)setIcarouselScrollEnabled:(BOOL)icarouselScrollEnabled{
9999
}
100100

101101
- (void)setupNavBtn{
102-
self.navigationItem.leftBarButtonItem = [[UIBarButtonItem alloc] initWithBarButtonSystemItem:UIBarButtonSystemItemSearch target:self action:@selector(searchItemClicked:)];
103-
self.navigationItem.rightBarButtonItem = [[UIBarButtonItem alloc] initWithBarButtonSystemItem:UIBarButtonSystemItemAdd target:self action:@selector(gotoNewProject)];
102+
// self.navigationItem.leftBarButtonItem = [[UIBarButtonItem alloc] initWithBarButtonSystemItem:UIBarButtonSystemItemSearch target:self action:@selector(searchItemClicked:)];
103+
// self.navigationItem.rightBarButtonItem = [[UIBarButtonItem alloc] initWithBarButtonSystemItem:UIBarButtonSystemItemAdd target:self action:@selector(gotoNewProject)];
104+
105+
[self.navigationItem setLeftBarButtonItem:[[UIBarButtonItem alloc] initWithImage:[UIImage imageNamed:@"search_Nav"] style:UIBarButtonItemStylePlain target:self action:@selector(searchItemClicked:)] animated:NO];
106+
[self.navigationItem setRightBarButtonItem:[[UIBarButtonItem alloc] initWithImage:[UIImage imageNamed:@"addBtn_Nav"] style:UIBarButtonItemStylePlain target:self action:@selector(gotoNewProject)] animated:NO];
104107

105108
}
106109

-168 Bytes
-148 Bytes
-167 Bytes
-134 Bytes
-120 Bytes

0 commit comments

Comments
 (0)