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.
精彩评论