Skip to content

Commit abf0bed

Browse files
committed
「冒泡搜索」改为「热门话题」&一些 UI 调整
1 parent 14114b6 commit abf0bed

10 files changed

Lines changed: 31 additions & 6 deletions

File tree

Coding_iOS.xcodeproj/project.pbxproj

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,10 @@
7474
4E095A831B6B24DE008DC439 /* [email protected] in Resources */ = {isa = PBXBuildFile; fileRef = 4E095A801B6B24DE008DC439 /* [email protected] */; };
7575
4E095A841B6B24DE008DC439 /* [email protected] in Resources */ = {isa = PBXBuildFile; fileRef = 4E095A811B6B24DE008DC439 /* [email protected] */; };
7676
4E095A851B6B24DE008DC439 /* [email protected] in Resources */ = {isa = PBXBuildFile; fileRef = 4E095A821B6B24DE008DC439 /* [email protected] */; };
77+
4E09DCA51C156387001C9392 /* [email protected] in Resources */ = {isa = PBXBuildFile; fileRef = 4E09DCA31C156387001C9392 /* [email protected] */; };
78+
4E09DCA61C156387001C9392 /* [email protected] in Resources */ = {isa = PBXBuildFile; fileRef = 4E09DCA41C156387001C9392 /* [email protected] */; };
79+
4E09DCA91C15662E001C9392 /* [email protected] in Resources */ = {isa = PBXBuildFile; fileRef = 4E09DCA71C15662E001C9392 /* [email protected] */; };
80+
4E09DCAA1C15662E001C9392 /* [email protected] in Resources */ = {isa = PBXBuildFile; fileRef = 4E09DCA81C15662E001C9392 /* [email protected] */; };
7781
4E0B9A341BAC1CD100D57D54 /* ForkTreeViewController.m in Sources */ = {isa = PBXBuildFile; fileRef = 4E0B9A331BAC1CD100D57D54 /* ForkTreeViewController.m */; };
7882
4E0B9A371BAD377600D57D54 /* ForkTreeCell.m in Sources */ = {isa = PBXBuildFile; fileRef = 4E0B9A361BAD377600D57D54 /* ForkTreeCell.m */; };
7983
4E0BD8561B6C7DFD0061CAA6 /* UIView+Frame.m in Sources */ = {isa = PBXBuildFile; fileRef = 4E0BD8551B6C7DFD0061CAA6 /* UIView+Frame.m */; };
@@ -1118,6 +1122,10 @@
11181122
4E095A801B6B24DE008DC439 /* [email protected] */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = "[email protected]"; sourceTree = "<group>"; };
11191123
4E095A811B6B24DE008DC439 /* [email protected] */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = "[email protected]"; sourceTree = "<group>"; };
11201124
4E095A821B6B24DE008DC439 /* [email protected] */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = "[email protected]"; sourceTree = "<group>"; };
1125+
4E09DCA31C156387001C9392 /* [email protected] */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = "[email protected]"; sourceTree = "<group>"; };
1126+
4E09DCA41C156387001C9392 /* [email protected] */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = "[email protected]"; sourceTree = "<group>"; };
1127+
4E09DCA71C15662E001C9392 /* [email protected] */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = "[email protected]"; sourceTree = "<group>"; };
1128+
4E09DCA81C15662E001C9392 /* [email protected] */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = "[email protected]"; sourceTree = "<group>"; };
11211129
4E0B9A321BAC1CD100D57D54 /* ForkTreeViewController.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = ForkTreeViewController.h; sourceTree = "<group>"; };
11221130
4E0B9A331BAC1CD100D57D54 /* ForkTreeViewController.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = ForkTreeViewController.m; sourceTree = "<group>"; };
11231131
4E0B9A351BAD377600D57D54 /* ForkTreeCell.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = ForkTreeCell.h; sourceTree = "<group>"; };
@@ -3939,6 +3947,10 @@
39393947
8E97CE4B1A0A3410006F9AD7 /* nav_button */ = {
39403948
isa = PBXGroup;
39413949
children = (
3950+
4E09DCA71C15662E001C9392 /* [email protected] */,
3951+
4E09DCA81C15662E001C9392 /* [email protected] */,
3952+
4E09DCA31C156387001C9392 /* [email protected] */,
3953+
4E09DCA41C156387001C9392 /* [email protected] */,
39423954
D0C447FE1C02DCAC00DC1C4B /* [email protected] */,
39433955
D0C447FF1C02DCAC00DC1C4B /* [email protected] */,
39443956
D0C448001C02DCAC00DC1C4B /* [email protected] */,
@@ -5172,6 +5184,7 @@
51725184
isa = PBXResourcesBuildPhase;
51735185
buildActionMask = 2147483647;
51745186
files = (
5187+
4E09DCA51C156387001C9392 /* [email protected] in Resources */,
51755188
8E97CE6C1A0B243B006F9AD7 /* [email protected] in Resources */,
51765189
4E6383FD1B33C18700D98648 /* [email protected] in Resources */,
51775190
4E9F5D201C03051D007CCDCC /* [email protected] in Resources */,
@@ -5240,7 +5253,9 @@
52405253
4E996C071ABBF56A00C704F1 /* [email protected] in Resources */,
52415254
4E8C51B01AC1081500B4C51F /* [email protected] in Resources */,
52425255
4E96E7DA1A1B537E0037C098 /* [email protected] in Resources */,
5256+
4E09DCA61C156387001C9392 /* [email protected] in Resources */,
52435257
4E4972DF1BB535B400F3AC15 /* [email protected] in Resources */,
5258+
4E09DCA91C15662E001C9392 /* [email protected] in Resources */,
52445259
8E62ADDA19E28DA800963870 /* [email protected] in Resources */,
52455260
4E6383A71B3262D300D98648 /* [email protected] in Resources */,
52465261
8E8F7B3519EF6306006BA8BD /* [email protected] in Resources */,
@@ -5526,6 +5541,7 @@
55265541
8E97CE611A0A3424006F9AD7 /* [email protected] in Resources */,
55275542
4E93F23B1B84356500017916 /* [email protected] in Resources */,
55285543
8E1C3DF619E7F4CA00EF3032 /* address.json in Resources */,
5544+
4E09DCAA1C15662E001C9392 /* [email protected] in Resources */,
55295545
4E2BF3D01B96CDF800A5A0A8 /* [email protected] in Resources */,
55305546
4EF17ED41B3C3112003CDD2D /* [email protected] in Resources */,
55315547
8EA6D18D19E240C40076D59C /* [email protected] in Resources */,

Coding_iOS/Controllers/LocalFileViewController.m

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ - (void)viewDidLoad {
4646
[super viewDidLoad];
4747
// Do any additional setup after loading the view.
4848
self.title = self.fileName;
49-
[self.navigationItem setRightBarButtonItem:[[UIBarButtonItem alloc] initWithImage:[UIImage imageNamed:@"moreBtn_Nav"] style:UIBarButtonItemStylePlain target:self action:@selector(rightNavBtnClicked)] animated:NO];
49+
[self.navigationItem setRightBarButtonItem:[[UIBarButtonItem alloc] initWithImage:[UIImage imageNamed:@"share_Nav"] style:UIBarButtonItemStylePlain target:self action:@selector(rightNavBtnClicked)] animated:NO];
5050

5151
if ([self.fileType isEqualToString:@"md"]
5252
|| [self.fileType isEqualToString:@"html"]
@@ -94,6 +94,7 @@ - (void)loadWebView:(NSURL *)fileUrl{
9494
NSString *mdStr = [NSString stringWithContentsOfURL:fileUrl encoding:NSUTF8StringEncoding error:nil];
9595
[self.activityIndicator startAnimating];
9696
[[Coding_NetAPIManager sharedManager] request_MDHtmlStr_WithMDStr:mdStr inProject:nil andBlock:^(id data, NSError *error) {
97+
[self.activityIndicator stopAnimating];
9798
NSString *htmlStr;
9899
htmlStr = data? data: @"加载失败";
99100
NSString *contentStr = [WebContentManager markdownPatternedWithContent:htmlStr];

Coding_iOS/Controllers/RootControllers/Tweet_RootViewController.m

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@
2828
#import "CSSearchVC.h"
2929
#import "CSSearchDisplayVC.h"
3030
#import "FunctionTipsManager.h"
31+
#import "CSHotTopicPagesVC.h"
3132

3233
@interface Tweet_RootViewController () <UISearchBarDelegate, UISearchDisplayDelegate>
3334
{
@@ -103,7 +104,9 @@ - (void)viewDidLoad
103104
// [self refreshFirst];
104105
// }];
105106

106-
UIBarButtonItem *leftBarItem =[UIBarButtonItem itemWithIcon:@"search_Nav" showBadge:NO target:self action:@selector(searchItemClicked:)];
107+
// UIBarButtonItem *leftBarItem =[UIBarButtonItem itemWithIcon:@"search_Nav" showBadge:NO target:self action:@selector(searchItemClicked:)];
108+
UIBarButtonItem *leftBarItem =[UIBarButtonItem itemWithIcon:@"hot_topic_Nav" showBadge:NO target:self action:@selector(hotTopicBtnClicked:)];
109+
107110
[self.parentViewController.navigationItem setLeftBarButtonItem:leftBarItem animated:NO];
108111

109112
_tweetsDict = [[NSMutableDictionary alloc] initWithCapacity:4];
@@ -287,7 +290,12 @@ - (void)deleteComment:(Comment *)comment ofTweet:(Tweet *)tweet{
287290
}];
288291
}
289292

290-
#pragma mark - search
293+
#pragma mark - nav_LeftBtn
294+
295+
- (void)hotTopicBtnClicked:(id)sender{
296+
CSHotTopicPagesVC *vc = [CSHotTopicPagesVC new];
297+
[self.navigationController pushViewController:vc animated:YES];
298+
}
291299

292300
- (void)searchItemClicked:(id)sender{
293301
if ([[FunctionTipsManager shareManager] needToTip:kFunctionTipStr_Search]) {

Coding_iOS/Controllers/Topic/CSHotTopicPagesVC.m

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -160,13 +160,13 @@ - (void)setupUI {
160160
UILabel *la1 = [[UILabel alloc] initWithFrame:CGRectMake((kScreen_Width/2 - titleWidth/2) + 0*distance, 8, titleWidth, 16)];
161161
la1.text = @"热门话题";
162162
la1.textAlignment = NSTextAlignmentCenter;
163-
la1.font = [UIFont systemFontOfSize:16];
163+
la1.font = [UIFont boldSystemFontOfSize:18];
164164
la1.textColor = [UIColor whiteColor];
165165

166166
UILabel *la2 = [[UILabel alloc] initWithFrame:CGRectMake((kScreen_Width/2 - titleWidth/2) + 1*distance, 8, titleWidth, 16)];
167167
la2.text = @"我的话题";
168168
la2.textAlignment = NSTextAlignmentCenter;
169-
la2.font = [UIFont systemFontOfSize:16];
169+
la2.font = [UIFont boldSystemFontOfSize:18];
170170
la2.textColor = [UIColor whiteColor];
171171

172172

Coding_iOS/Controllers/TweetDetailViewController.m

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ - (void)viewDidLoad
5252
[super viewDidLoad];
5353
// Do any additional setup after loading the view.
5454
self.title = @"冒泡详情";
55-
[self.navigationItem setRightBarButtonItem:[[UIBarButtonItem alloc] initWithImage:[UIImage imageNamed:@"moreBtn_Nav"] style:UIBarButtonItemStylePlain target:self action:@selector(rightNavBtnClicked)] animated:NO];
55+
[self.navigationItem setRightBarButtonItem:[[UIBarButtonItem alloc] initWithImage:[UIImage imageNamed:@"share_Nav"] style:UIBarButtonItemStylePlain target:self action:@selector(rightNavBtnClicked)] animated:NO];
5656

5757
// 添加myTableView
5858
_myTableView = ({

Coding_iOS/Images/.DS_Store

0 Bytes
Binary file not shown.
450 Bytes
Loading
597 Bytes
Loading
668 Bytes
Loading
983 Bytes
Loading

0 commit comments

Comments
 (0)