Commit 50cab8fac7306a5927f818543f6264127e2b0255

Authored by zhangxiaowen
1 parent fedc545b

no message

CNLiveIntegralModule/Classes/Controller/CNLiveIntegralDetailsController.m
... ... @@ -62,12 +62,12 @@
62 62 if (error) {
63 63 if (error.code == -1001||error.code == -1003||error.code == -1009) {
64 64 [strongSelf.tableView showEmptyViewWithType:CNLiveCustomTipsTypeNoNet noData:strongSelf.data.count == 0 block:^{
65   - [self.tableView.mj_header beginRefreshing];
  65 + [strongSelf.tableView.mj_header beginRefreshing];
66 66  
67 67 }];
68 68 }else{
69 69 [strongSelf.tableView showEmptyViewWithType:CNLiveCustomTipsTypeLoadFail noData:strongSelf.data.count == 0 block:^{
70   - [self.tableView.mj_header beginRefreshing];
  70 + [strongSelf.tableView.mj_header beginRefreshing];
71 71  
72 72 }];
73 73 }
... ... @@ -207,12 +207,16 @@
207 207 [_tableView registerClass:[CNLiveIntegralDetailsTableViewCell class] forCellReuseIdentifier:kCNLiveIntegralDetailsTableViewCell];
208 208 __weak __typeof(self)weakSelf = self;
209 209 CNLiveRefreshHeader *header = [CNLiveRefreshHeader headerWithRefreshingBlock:^{
210   - weakSelf.pageNo = 1;
211   - [weakSelf loadData];
  210 + __strong typeof(weakSelf) strongSelf = weakSelf;
  211 + if(!strongSelf) return ;
  212 + strongSelf.pageNo = 1;
  213 + [strongSelf loadData];
212 214 }];
213 215 _tableView.mj_header = header;
214 216 CNLiveRefreshFooter *footer = [CNLiveRefreshFooter footerWithRefreshingBlock:^{
215   - [weakSelf loadMoreData];
  217 + __strong typeof(weakSelf) strongSelf = weakSelf;
  218 + if(!strongSelf) return ;
  219 + [strongSelf loadMoreData];
216 220 }];
217 221 _tableView.mj_footer = footer;
218 222 }
... ...
CNLiveIntegralModule/Classes/Controller/CNLiveTaskListController.m
... ... @@ -321,7 +321,7 @@
321 321 */
322 322  
323 323 #pragma mark - Action
324   -- (void)backAction:(UIButton *)btn{
  324 +- (void)backDidClicked:(UIButton *)btn{
325 325 [self.navigationController popViewControllerAnimated:YES];
326 326  
327 327 }
... ... @@ -335,7 +335,7 @@
335 335 [_backButton setContentHorizontalAlignment:UIControlContentHorizontalAlignmentLeft];
336 336 UIImage *image = [self getImageWithImageName:@"mine_back_white_b" bundleName:@"CNLiveIntegralModule" targetClass:[self class]];
337 337 [_backButton setImage:image forState:UIControlStateNormal];
338   - [_backButton addTarget:self action:@selector(backAction:) forControlEvents:UIControlEventTouchUpInside];
  338 + [_backButton addTarget:self action:@selector(backDidClicked:) forControlEvents:UIControlEventTouchUpInside];
339 339 }
340 340 return _backButton;
341 341 }
... ...