How to create multiple table view in a View Controller for iPad?

前端 未结 3 1580
心在旅途
心在旅途 2021-01-14 09:57

I am working with the universal apps. Now i want to create a three table views in my view controller for iPAD. I have three separate view controllers with XIB.So how can i a

3条回答
  •  予麋鹿
    予麋鹿 (楼主)
    2021-01-14 10:31

    A table view is just a view you can use. It doesn't have to be bound 1:1 to a view controller, but if it's not, you need to set up the custom single view controller that owns the screen, and then get it to own all three table views as subviews. You need to be careful about which object is the delegate and data source of each views, and do the right thing with providing cells, etc. If the same controller is the delegate/data source of all the table views, you have to switch in the delegate methods to do the right thing on each.

提交回复
热议问题