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

Appearance settings

Commit 7360850

Browse filesBrowse files
author
panshiyu
committed
modify
1 parent 4a229cd commit 7360850
Copy full SHA for 7360850

File tree

Expand file treeCollapse file tree

5 files changed

+10
-21
lines changed
Open diff view settings
Filter options
Expand file treeCollapse file tree

5 files changed

+10
-21
lines changed
Open diff view settings
Collapse file

‎.gitignore‎

Copy file name to clipboardExpand all lines: .gitignore
+2-1Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ DerivedData
1717
*.ipa
1818
*.xcuserstate
1919

20+
Coding_iOS/Views/.DS_Store
2021
# CocoaPods
2122
#
2223
# We recommend against adding the Pods directory to your .gitignore. However
@@ -25,4 +26,4 @@ DerivedData
2526
#
2627
Pods/
2728
.idea/
28-
*.xcbkptlist
29+
*.xcbkptlist
Collapse file

‎Coding_iOS/Controllers/Topic/CSHotTopicVC.m‎

Copy file name to clipboardExpand all lines: Coding_iOS/Controllers/Topic/CSHotTopicVC.m
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -257,7 +257,7 @@ - (id)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reus
257257
- (void)updateDisplayByTopic:(NSDictionary*)data {
258258

259259
_nameLabel.text = [NSString stringWithFormat:@"#%@#",data[@"name"]];
260-
_userCountLabel.text = [NSString stringWithFormat:@"%@人参与",data[@"user_count"]];
260+
_userCountLabel.text = [NSString stringWithFormat:@"%@人参与",data[@"speackers"]];
261261

262262
if (data[@"hot_tweet"]) {
263263
Tweet *tweet = [NSObject objectOfClass:@"Tweet" fromJSON:data[@"hot_tweet"]];
Collapse file

‎Coding_iOS/Controllers/Topic/CSTopicCreateVC.m‎

Copy file name to clipboardExpand all lines: Coding_iOS/Controllers/Topic/CSTopicCreateVC.m
+1-15Lines changed: 1 addition & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -368,22 +368,8 @@ @implementation CSMySearchDisplayController
368368
- (void)setActive:(BOOL)visible animated:(BOOL)animated
369369
{
370370
[super setActive:visible animated:animated];
371-
372-
// [self.navigationController setNavigationBarHidden:NO animated:NO];
373371
[self.searchContentsController.navigationController setNavigationBarHidden: NO animated: NO];
374-
//
375-
// CGRect frame = self.searchResultsTableView.frame;
376-
// frame.origin.y = CGRectGetHeight(self.searchContentsController.navigationController.navigationBar.frame);
377-
//
378-
// frame.size.height = CGRectGetHeight(frame) - CGRectGetMinY(frame);
379-
//
380-
// self.searchResultsTableView.frame = frame;
381-
//
382-
// frame = self.searchBar.frame;
383-
// self.searchBar.frame = frame;
384-
385-
//[self.searchContentsController.view insertSubview:self.searchBar aboveSubview:self.searchResultsTableView];
386-
372+
387373
}
388374

389375

Collapse file

‎Coding_iOS/Controllers/Topic/CSTopicDetailVC.m‎

Copy file name to clipboardExpand all lines: Coding_iOS/Controllers/Topic/CSTopicDetailVC.m
-1Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,6 @@ - (void)refreshheader {
6565
if (data) {
6666
[self.tableHeader updateWithTopic:data];
6767
}
68-
6968
}];
7069
}
7170

Collapse file

‎Coding_iOS/Controllers/Topic/CSTopicHeaderView.m‎

Copy file name to clipboardExpand all lines: Coding_iOS/Controllers/Topic/CSTopicHeaderView.m
+6-3Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -121,12 +121,13 @@ - (void)updateWithTopic:(NSDictionary *)data {
121121
_refTopic = data;
122122
_nameLabel.text = [NSString stringWithFormat:@"#%@#",data[@"name"]];
123123

124-
NSArray *userlist = data[@"user_list"];
125-
_userCountLabel.text = [NSString stringWithFormat:@"%@人参与/%d人关注",data[@"user_count"],[userlist count]];
124+
125+
_userCountLabel.text = [NSString stringWithFormat:@"%@人参与/%@人关注",data[@"speackers"],data[@"watchers"]];
126126

127127
NSString *imageName = _watched? @"btn_project_added":@"btn_project_add";
128128
[_rightBtn setImage:[UIImage imageNamed:imageName] forState:UIControlStateNormal];
129129

130+
NSArray *userlist = data[@"user_list"];
130131
if (!_avatalist) {
131132
_avatalist = [NSMutableArray array];
132133

@@ -140,7 +141,9 @@ - (void)updateWithTopic:(NSDictionary *)data {
140141
}
141142

142143
[self addSubview:iconView];
143-
[iconView sd_setImageWithURL:[NSURL URLWithString:user[@"avatar"]]];
144+
// [iconView sd_setImageWithURL:[user[@"avatar"] urlWithCodePath]];
145+
[iconView sd_setImageWithURL:[user[@"avatar"] urlImageWithCodePathResizeToView:iconView] placeholderImage:[UIImage imageNamed:@"icon_user_monkey"]];
146+
144147
[_avatalist addObject:iconView];
145148
}
146149
}

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.