[英]iOS Swift ReloadData on UITableView does not refresh UICollectionView inside of UITableViewCell
[英]iOS: UITableView reloadData can not refresh data
UITableView不重新加載數據。 我正在使用拉動加載更多庫以滾動加載數據
我努力了
dispatch_sync(dispatch_get_main_queue(), ^{
[self.pullTableView reloadData];
});
和
[self.pullTableView performSelectorOnMainThread:@selector(reloadData)
withObject:nil
waitUntilDone:YES];
提前致謝。
reloadData
實際上不會從您那里獲取Internet或您的數據源的數據,它只會回調numberOfSection
numberOfRowInSection:
和cellForRowAtIndexPath:
函數cellForRowAtIndexPath:
在調用重新加載數據之前,您應該調用go方法並獲取新內容,然后調用reloadData
如果需要更多幫助,請放置整個類視圖控制器代碼。
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.