Objective-c - Program crashes when UITableView is pulled down to refresh
PHP中文网
PHP中文网 2017-05-02 09:32:06
0
0
510

Post the code first

-(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];
    
}

Error code libc abi.dylib: terminating with uncaught exception of type NSException

PHP中文网
PHP中文网

认证0级讲师

reply all(0)
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template