objective-c - UITableView下拉刷新時候程式崩潰
PHP中文网
PHP中文网 2017-05-02 09:32:06
0
0
460

先貼下程式碼

-(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中文网

认证0级讲师

全部回覆(0)
熱門教學
更多>
最新下載
更多>
網站特效
網站源碼
網站素材
前端模板
關於我們 免責聲明 Sitemap
PHP中文網:公益線上PHP培訓,幫助PHP學習者快速成長!