【发布时间】:2013-08-07 23:10:23
【问题描述】:
有没有办法将 UITableViewController 的 tableView 部分添加到 UIView?
这就是我所拥有的......
1) UIViewController - MainViewController
2) UIView - customUIView - 添加到 MainViewController(加载新页面时替换此 UIView)
-
当单击按钮时,我的应用程序中的所有其他页面都使用(示例)加载
mainViewController.customUIView = [[LoginPage alloc] initWithFrame:mainViewController.view.bounds];
3) UITableViewController - ScoresNotificationsPage - 这是我的问题,尝试将其中的 tableView 部分添加到 UIView 并让它显示在 MainViewController 上,就像添加了任何其他 UIView 一样。
-
当我尝试将 UITableViewController 的 tableView 部分加载到 customUIView 中时:
mainViewController.customUIView = [[ScoresNotificationsPage alloc] initWithFrame:mainViewController.view.bounds];
我收到以下错误
从“ScoresNotificationsPage *”分配给“UIView *”的指针类型不兼容
知道我可以做些什么来让 tableView 显示出来吗?
提前谢谢你。
呼……
【问题讨论】:
标签: uitableview uiview uiviewcontroller