用 UIPopOverController 替换 UITableView
我有一个 UITableView,它不占据 iPad 的整个屏幕。我当前的视图是 UITableView 的数据源和委托。现在我想用 UIPopOverController 替换当前的 UITableView。从我在网上看到的示例来看,似乎大多数人都会创建一个新类来子类化 UITableView,并在 UIPopOverController 中呈现该实例。就我而言,由于我当前的 viewController 已经是数据源和委托,所以我的步骤需要是:
(1)创建一个新类,子类化 UITableViewController (2) 使该类成为数据源和委托 (3) 在我的 UITableView 所在的当前 viewController 中呈现此类的实例?
谢谢。
I have a UITableView that does not take up the whole screen of the iPad. The current view I have it in is the datasource and delegate for the UITableView. Now I want to replace the current UITableView with a UIPopOverController. From the examples I see online, it seems like most people create a new class that subclasses UITableView, and present that instance in the UIPopOverController. In my case, since my current viewController is the datasource and delegate already, would my steps need to be:
(1) create a new class, subclassing UITableViewController
(2) make this class the datasource and delegate
(3) present an instance of this class in the current viewController where my UITableView was?
Thanks.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
制作一个新的导航控制器,并将其与 rootView 作为表一起呈现
以制作出口:
“File1”中
在.m 文件中的
appDelegate.h 中
的 appDelegate.m 中
make a new navigation controller and present it with the rootView as the table
to make an outlet:
in "File1"
in the .m file
in the appDelegate.h
in the appDelegate.m