We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
(NSMutableArray *)createPageViews{ NSMutableArray *pageViews = [NSMutableArray array]; for (NSInteger i = 0; i < self.titles.count; i++) { if(i == 0){//推荐 RecommendTableViewController *recVc = [[RecommendTableViewController alloc]init]; // [recVc.tableView reloadData]; [pageViews addObject:recVc.tableView]; }else{ HATestView *textView = [[HATestView alloc]init]; //textView.tag = i; textView.label.text = self.titles[i]; [pageViews addObject:textView]; }
} return pageViews; }
The text was updated successfully, but these errors were encountered:
无法正常显示cell
Sorry, something went wrong.
最开始以为自己xib的cell有问题,又在外面demo了一下,发现是没问题的。还是框架的问题,创建pageViews时,把tableViewController.view 加入 能显示像tableViewHeader和footer,就是不能正常显示cell内容。很奇怪,不知大家是否也刚好遇到了这种问题。
QQ:278451389
No branches or pull requests
(NSMutableArray *)createPageViews{
NSMutableArray *pageViews = [NSMutableArray array];
for (NSInteger i = 0; i < self.titles.count; i++) {
if(i == 0){//推荐
RecommendTableViewController *recVc = [[RecommendTableViewController alloc]init];
// [recVc.tableView reloadData];
[pageViews addObject:recVc.tableView];
}else{
HATestView *textView = [[HATestView alloc]init];
//textView.tag = i;
textView.label.text = self.titles[i];
[pageViews addObject:textView];
}
}
return pageViews;
}
The text was updated successfully, but these errors were encountered: