开发者

Subclassing UITableViewController for PopoverController

开发者 https://www.devze.com 2023-03-13 11:54 出处:网络
I have a ViewController that is composed of a few different views on my screen.A scrollView for text data, a TableView for some other data, etc.In my app, I want to add a UIPopOverController to show a

I have a ViewController that is composed of a few different views on my screen. A scrollView for text data, a TableView for some other data, etc. In my app, I want to add a UIPopOverController to show a list of my data. The current ViewController I am in is not a subclass of UITableViewController. Do I have to create a separat开发者_C百科e subclass of UITableViewController in another file, and use an instance of that class in this ViewController? Thanks.


You can show any kind of UIViewController in a UIPopoverController. A table view is not at all required for displaying a Popover controller. If you want to display a UITableviewController, you most certainly can. Just pass it in to the popover controller.

0

精彩评论

暂无评论...
验证码 换一张
取 消