搜索

首页  >  问答  >  正文

objective-c - UITableView下拉刷新时候程序崩溃

先贴下代码

-(void)api:(NSString*)apiName successWithData:(id)responseData
{
    if ([apiName isEqualToString:kApi_image_list])  //比较apiName是否等于kApi_image_list (isEqualToString是字符串间的比较,==是指针间的比较)
    {
        [self.datas setArray:responseData];
    }
    [self.refreshControl endRefreshing];
    self.refreshControl.attributedTitle=[[NSAttributedString alloc]initWithString:@"下拉刷新"
                                                                       attributes:@{NSForegroundColorAttributeName:[UIColor whiteColor]}];
    [self.tableView reloadData];
    
}

报错代码libc abi.dylib: terminating with uncaught exception of type NSException

PHP中文网PHP中文网2835 天前526

全部回复(0)我来回复

暂无回复
  • 取消回复