Skip to content

Commit 7536557

Browse files
committed
修复Bug
1 parent 0ca1745 commit 7536557

File tree

3 files changed

+16
-2
lines changed

3 files changed

+16
-2
lines changed

Coding_iOS/Controllers/Search/CSSearchDisplayVC.m

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -267,6 +267,11 @@ - (void)initSearchHistoryView {
267267

268268
[[_searchHistoryView subviews] makeObjectsPerformSelector:@selector(removeFromSuperview)];
269269

270+
{
271+
UIView *view = [[UIView alloc] initWithFrame:CGRectMake(0, 0, kScreen_Width, 1)];
272+
view.backgroundColor = [UIColor colorWithHexString:@"0xdddddd"];
273+
[_searchHistoryView addSubview:view];
274+
}
270275
NSArray *array = [CSSearchModel getSearchHistory];
271276
CGFloat imageLeft = 12.0f;
272277
CGFloat textLeft = 34.0f;
@@ -289,13 +294,16 @@ - (void)initSearchHistoryView {
289294
rightImageView.centerY = lblHistory.centerY;
290295
rightImageView.image = [UIImage imageNamed:@"icon_arrow_searchHistory"];
291296

297+
UIView *view = [[UIView alloc] initWithFrame:CGRectMake(imageLeft, (i + 1) * height, kScreen_Width - imageLeft, 1)];
298+
view.backgroundColor = [UIColor colorWithHexString:@"0xdddddd"];
292299

293300
UITapGestureRecognizer *tapGestureRecognizer = [[UITapGestureRecognizer alloc] initWithTarget:self action:@selector(didClickedHistory:)];
294301
[lblHistory addGestureRecognizer:tapGestureRecognizer];
295302

296303
[_searchHistoryView addSubview:lblHistory];
297304
[_searchHistoryView addSubview:leftView];
298305
[_searchHistoryView addSubview:rightImageView];
306+
[_searchHistoryView addSubview:view];
299307
}
300308

301309
if(array.count) {
@@ -307,6 +315,11 @@ - (void)initSearchHistoryView {
307315
[btnClean setFrame:CGRectMake(0, array.count * height, kScreen_Width, height)];
308316
[_searchHistoryView addSubview:btnClean];
309317
[btnClean addTarget:self action:@selector(didCLickedCleanSearchHistory:) forControlEvents:UIControlEventTouchUpInside];
318+
{
319+
UIView *view = [[UIView alloc] initWithFrame:CGRectMake(imageLeft, (array.count + 1) * height, kScreen_Width - imageLeft, 1)];
320+
view.backgroundColor = [UIColor colorWithHexString:@"0xdddddd"];
321+
[_searchHistoryView addSubview:view];
322+
}
310323
}
311324

312325
}

Coding_iOS/Controllers/Topic/CSLikesVC.m

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,7 @@ - (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(N
5353
cell = [[UserCell alloc] initWithStyle:UITableViewCellStyleDefault reuseIdentifier:kCellIdentifier_UserCell];
5454
}
5555
User *curUser = [_userlist objectAtIndex:indexPath.row];
56+
cell.bounds = CGRectMake(0, 0, kScreen_Width, [UserCell cellHeight]);
5657
cell.curUser = curUser;
5758
cell.usersType = UsersTypeTweetLikers;
5859
[tableView addLineforPlainCell:cell forRowAtIndexPath:indexPath withLeftSpace:60];

Coding_iOS/Util/Manager/Coding_NetAPIManager.m

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2061,7 +2061,7 @@ - (void)request_TopTweetWithTopicID:(int)topicID block:(void (^)(id data, NSErro
20612061

20622062

20632063
- (void)request_JoinedTopicsWithUserGK:(NSString *)userGK page:(NSInteger)page block:(void (^)(id data, BOOL hasMoreData, NSError *error))block {
2064-
NSString *path = [[NSString stringWithFormat:@"api/user/%@/tweet_topic/joined",userGK] stringByAppendingString:[NSString stringWithFormat:@"?page=%d", (int)page]];
2064+
NSString *path = [[NSString stringWithFormat:@"api/user/%@/tweet_topic/joined",userGK] stringByAppendingString:[NSString stringWithFormat:@"?page=%d&extraInfo=1", (int)page]];
20652065
[[CodingNetAPIClient sharedJsonClient] requestJsonDataWithPath:path withParams:nil withMethodType:Get andBlock:^(id data, NSError *error) {
20662066
if(data) {
20672067
id resultData = data[@"data"];
@@ -2077,7 +2077,7 @@ - (void)request_JoinedTopicsWithUserGK:(NSString *)userGK page:(NSInteger)page b
20772077
}
20782078

20792079
- (void)request_WatchedTopicsWithUserGK:(NSString *)userGK page:(NSInteger)page block:(void (^)(id data, BOOL hasMoreData, NSError *error))block {
2080-
NSString *path = [[NSString stringWithFormat:@"/api/user/%@/tweet_topic/watched",userGK] stringByAppendingString:[NSString stringWithFormat:@"?page=%d", (int)page]];
2080+
NSString *path = [[NSString stringWithFormat:@"/api/user/%@/tweet_topic/watched",userGK] stringByAppendingString:[NSString stringWithFormat:@"?page=%d&extraInfo=1", (int)page]];
20812081
[[CodingNetAPIClient sharedJsonClient] requestJsonDataWithPath:path withParams:nil withMethodType:Get andBlock:^(id data, NSError *error) {
20822082
if(data) {
20832083
id resultData = data[@"data"];

0 commit comments

Comments
 (0)