Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 3dab9b7

Browse files
UI 优化
1 parent 43c1aed commit 3dab9b7

File tree

6 files changed

+14
-5
lines changed

6 files changed

+14
-5
lines changed

‎Coding_iOS.xcodeproj/project.pbxproj‎

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1204,6 +1204,8 @@
12041204
B12B647E1FFB61AD00ACFDCC /* QBSlomoIconView.m in Sources */ = {isa = PBXBuildFile; fileRef = B12B64711FFB61AD00ACFDCC /* QBSlomoIconView.m */; };
12051205
B12B647F1FFB61AD00ACFDCC /* QBAssetCell.m in Sources */ = {isa = PBXBuildFile; fileRef = B12B64721FFB61AD00ACFDCC /* QBAssetCell.m */; };
12061206
B12B64821FFC73A900ACFDCC /* PHAsset+Common.m in Sources */ = {isa = PBXBuildFile; fileRef = B12B64811FFC73A900ACFDCC /* PHAsset+Common.m */; };
1207+
B131E2112074D2EE00D84FAA /* project_item_reading@3x.png in Resources */ = {isa = PBXBuildFile; fileRef = B131E20F2074D2ED00D84FAA /* project_item_reading@3x.png */; };
1208+
B131E2122074D2EE00D84FAA /* project_item_reading@2x.png in Resources */ = {isa = PBXBuildFile; fileRef = B131E2102074D2EE00D84FAA /* project_item_reading@2x.png */; };
12071209
B14689B41EE100B200B01371 /* vip_3_30@2x.png in Resources */ = {isa = PBXBuildFile; fileRef = B14689A41EE100B200B01371 /* vip_3_30@2x.png */; };
12081210
B14689B51EE100B200B01371 /* vip_3_30@3x.png in Resources */ = {isa = PBXBuildFile; fileRef = B14689A51EE100B200B01371 /* vip_3_30@3x.png */; };
12091211
B14689B61EE100B200B01371 /* vip_3_40@2x.png in Resources */ = {isa = PBXBuildFile; fileRef = B14689A61EE100B200B01371 /* vip_3_40@2x.png */; };
@@ -3307,6 +3309,8 @@
33073309
B12B64721FFB61AD00ACFDCC /* QBAssetCell.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = QBAssetCell.m; sourceTree = "<group>"; };
33083310
B12B64801FFC73A900ACFDCC /* PHAsset+Common.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = "PHAsset+Common.h"; sourceTree = "<group>"; };
33093311
B12B64811FFC73A900ACFDCC /* PHAsset+Common.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = "PHAsset+Common.m"; sourceTree = "<group>"; };
3312+
B131E20F2074D2ED00D84FAA /* project_item_reading@3x.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = "project_item_reading@3x.png"; sourceTree = "<group>"; };
3313+
B131E2102074D2EE00D84FAA /* project_item_reading@2x.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = "project_item_reading@2x.png"; sourceTree = "<group>"; };
33103314
B14689A41EE100B200B01371 /* vip_3_30@2x.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = "vip_3_30@2x.png"; sourceTree = "<group>"; };
33113315
B14689A51EE100B200B01371 /* vip_3_30@3x.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = "vip_3_30@3x.png"; sourceTree = "<group>"; };
33123316
B14689A61EE100B200B01371 /* vip_3_40@2x.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = "vip_3_40@2x.png"; sourceTree = "<group>"; };
@@ -4222,6 +4226,8 @@
42224226
4E6383C81B32665700D98648 /* nproject_item */ = {
42234227
isa = PBXGroup;
42244228
children = (
4229+
B131E2102074D2EE00D84FAA /* project_item_reading@2x.png */,
4230+
B131E20F2074D2ED00D84FAA /* project_item_reading@3x.png */,
42254231
B1C8712C1EADF155003DACF0 /* project_item_activity@3x.png */,
42264232
B1C8712D1EADF155003DACF0 /* project_item_code@3x.png */,
42274233
B1C8712E1EADF155003DACF0 /* project_item_file@3x.png */,
@@ -7401,6 +7407,7 @@
74017407
4E07D30E1A4A9F45009EDDF2 /* btn_file_reDo@2x.png in Resources */,
74027408
B14689BC1EE100B200B01371 /* vip_4_30@2x.png in Resources */,
74037409
B1C8714D1EADF3AC003DACF0 /* mrpr_icon_fileChange@3x.png in Resources */,
7410+
B131E2112074D2EE00D84FAA /* project_item_reading@3x.png in Resources */,
74047411
4EAAD0511E542B2D008AA957 /* icon_code_executable@2x.png in Resources */,
74057412
B1C8714B1EADF217003DACF0 /* user_info_company@3x.png in Resources */,
74067413
B12B64291FF33E0100ACFDCC /* upgrade_success@2x.png in Resources */,
@@ -7450,6 +7457,7 @@
74507457
B1BCB88B1FCD0A6D0098B87B /* icon_file_xls_big@2x.png in Resources */,
74517458
4ED4B4921D82646100EED8C6 /* user_info_topic@3x.png in Resources */,
74527459
4ED618211C3BD79B0017946C /* task_activity_icon_remove_watcher@2x.png in Resources */,
7460+
B131E2122074D2EE00D84FAA /* project_item_reading@2x.png in Resources */,
74537461
927AFF521BFF6DAD00AAE593 /* shop_nar_history_icon@2x.png in Resources */,
74547462
4E6383AD1B3262D300D98648 /* taskPriority3_small@2x.png in Resources */,
74557463
8E97CEA91A0C7E26006F9AD7 /* coding_emoji_18@2x.png in Resources */,

‎Coding_iOS/.DS_Store‎

0 Bytes
Binary file not shown.

‎Coding_iOS/Controllers/EALocalCodeListViewController.m‎

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,6 @@ @implementation EALocalCodeListViewController
2525
- (void)viewDidLoad {
2626
[super viewDidLoad];
2727
// Do any additional setup after loading the view.
28-
self.title = _curURL.lastPathComponent;
2928
_myTableView = ({
3029
UITableView *tableView = [UITableView new];
3130
tableView.backgroundColor = [UIColor clearColor];
@@ -50,7 +49,7 @@ - (void)viewDidLoad {
5049
searchBar;
5150
});
5251
_myTableView.tableHeaderView = _mySearchBar;
53-
[self setupNavBtn];
52+
[self setupNavBtnAndTitle];
5453
[self setupData];
5554
}
5655

@@ -79,11 +78,13 @@ - (NSArray *)dataList{
7978
}
8079

8180
#pragma mark Nav
82-
- (void)setupNavBtn{
81+
- (void)setupNavBtnAndTitle{
8382
if ([_curURL.absoluteString isEqualToString:_curPro.localURL.absoluteString]) {//根目录
83+
NSArray<GTBranch *> *branchList = [_curPro.localRepo localBranchesWithError:nil];
84+
self.title = branchList.count > 0? branchList.firstObject.shortName: _curURL.lastPathComponent;
8485
self.navigationItem.rightBarButtonItem = [[UIBarButtonItem alloc] initWithImage:[UIImage imageNamed:@"moreBtn_Nav"] style:UIBarButtonItemStylePlain target:self action:@selector(navBtnClicked)];
8586
}else{
86-
self.navigationItem.rightBarButtonItem = nil;
87+
self.title = _curURL.lastPathComponent;
8788
}
8889
}
8990

‎Coding_iOS/Controllers/NProjectViewController/NProjectViewController.m‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -251,7 +251,7 @@ - (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(N
251251
}
252252
}
253253
}else if (indexPath.section == 3){
254-
[cell setImageStr:@"project_item_code" andTitle:@"本地阅读"];
254+
[cell setImageStr:@"project_item_reading" andTitle:@"本地阅读"];
255255
}
256256
FunctionTipsManager *ftm = [FunctionTipsManager shareManager];
257257
NSString *tipStr = [self p_TipStrForIndexPath:indexPath];
561 Bytes
Loading[フレーム]
854 Bytes
Loading[フレーム]

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /