I have developed an iPhone app which I am trying to port to iPad using UISplitViewController. The iPhone app is an ideal candidate for "Master-detail view" design. The master view shows a list of things and clicking on each row opens up its detail in the detail view. However, my problem is that I need the detail view to contain a static table containing 5 cells. I am unable to figure out how to put a static table in the detail view of the UISplitViewController. I tried the following:
- Created a master-detail storyboard
- Set up the detail view controller's class as a custom class derived from UITableViewController. This is the same class which I am using in my iPhone code for the main screen.
- Dragged a table view in the detail view
- Configured the detail view to show static cells
As soon as I change the cells to static, I get an error "Static table views are only valid when embedded in UITableViewController instances".
I am unable to understand what this error means and how to configure static cells in detail view. What should I do?
I am relatively new to iOS programming and have been struggling for past 2 days on this problem.