My iPad app uses a DetailView, which is embedded in a TabBarControl to switch between multiple data views.
The DetailView is designed as TableViewController, which has a large header view (to add charts later, the header view makes up approximately 40% of the vertical space) and a toolbar on top.
How can I prevent to scroll the toolbar and header out of the view window when the table has more rows that can be displayed?
I want to have the table rows scrollable but fixed header and toolbar.
What improvement to my design would you suggest?
Thank you in advance!
Don’t use a
UITableViewController, simply create a subclass of aUIViewController. InviewDidLoadjust add your header views to theUIViewControllers view and add aUITableViewbelow the header views. This way only theUITableViewscrolls and your header views have a fixed position.