Adam
Adam

Reputation: 255

Load UITableView inside a UIView

Do I need a UITableViewController in addition to my UIViewController if I want to load a UITableView as a subview along with several other views at one time?

Upvotes: 2

Views: 3819

Answers (1)

No Surprises
No Surprises

Reputation: 4901

No, just make your UIViewController the data source and delegate of the UITableView subview, and make sure the UIViewController adopts the appropriate protocols in the header file.

Upvotes: 4

Related Questions