Skip to content
New issue

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

加入一个tableViewController 到pageViews 根本无法显示 #11

Open
2014LEO opened this issue Mar 20, 2016 · 3 comments
Open

加入一个tableViewController 到pageViews 根本无法显示 #11

2014LEO opened this issue Mar 20, 2016 · 3 comments

Comments

@2014LEO
Copy link

2014LEO commented Mar 20, 2016

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

@2014LEO
Copy link
Author

2014LEO commented Mar 20, 2016

无法正常显示cell

@2014LEO
Copy link
Author

2014LEO commented Mar 20, 2016

最开始以为自己xib的cell有问题,又在外面demo了一下,发现是没问题的。还是框架的问题,创建pageViews时,把tableViewController.view 加入 能显示像tableViewHeader和footer,就是不能正常显示cell内容。很奇怪,不知大家是否也刚好遇到了这种问题。

@2014LEO
Copy link
Author

2014LEO commented Mar 20, 2016

QQ:278451389

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant