Skip to content

Commit 0314ebb

Browse files
committed
code view
1 parent 6a74239 commit 0314ebb

3 files changed

Lines changed: 2 additions & 3 deletions

File tree

Coding_iOS/Controllers/CodeListViewController.m

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@ - (void)viewDidLoad {
2929
[listView mas_makeConstraints:^(MASConstraintMaker *make) {
3030
make.edges.equalTo(self.view);
3131
}];
32+
[listView addBranchTagButton];
3233
}
3334

3435
- (void)didReceiveMemoryWarning {

Coding_iOS/Views/CodeBranchTagButton.m

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -269,6 +269,7 @@ - (void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath
269269
[tableView deselectRowAtIndexPath:indexPath animated:YES];
270270
CodeBranchOrTag *curBranchOrTag = [self.dataList objectAtIndex:indexPath.row];
271271
self.titleStr = curBranchOrTag.name;
272+
[self.myTableView reloadData];
272273
if (_selectedBranchTagBlock) {
273274
_selectedBranchTagBlock(curBranchOrTag.name);
274275
}

Coding_iOS/Views/ProjectCodeListView.m

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -95,9 +95,6 @@ - (void)sendRequest{
9595
}
9696
__weak typeof(self) weakSelf = self;
9797
[[Coding_NetAPIManager sharedManager] request_CodeTree:_myCodeTree withPro:_curProject codeTreeBlock:^(id codeTreeData, NSError *codeTreeError) {
98-
if (![weakSelf.myCodeTree.ref isEqualToString:[(CodeTree *)codeTreeData ref]]) {
99-
return ;
100-
}
10198

10299
[weakSelf.myRefreshControl endRefreshing];
103100
[weakSelf endLoading];

0 commit comments

Comments
 (0)