objective-c - UITableView下拉刷新时候程序崩溃
PHP中文网
PHP中文网 2017-05-02 09:32:06
0
0
463

先贴下代码

-(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级讲师

répondre à tous(0)
Derniers téléchargements
Plus>
effets Web
Code source du site Web
Matériel du site Web
Modèle frontal
À propos de nous Clause de non-responsabilité Sitemap
Site Web PHP chinois:Formation PHP en ligne sur le bien-être public,Aidez les apprenants PHP à grandir rapidement!