I am building an app where I have a tableview. Now on top of that tableview I want 3 buttons. When you click on these buttons the tableview’s data changes. This tableview is derived from
@interface MultimediaViewController : CoreDataTableViewController
This is using NSFetchedResultController. At the moment my storyboard looks like this.
The problem I have now is that the buttons on top of my tableview dissapear when I scroll down. I can solve this by making in my storyboard the following order of rank.
- View
- TableView
- Button 1
- Button 2
But then my NSFetchedResultController won’t work. Because my class is derived from CorDataTableViewController.
Can anybody help me solving this annoying problem. If you need more details just ask.
Kind regards.
As I understood you properly, you want to have the same buttons with the same actions, but they are fixed on the top of the screen while table scrolls vertically. You can:
This is fastest and simplest workaround i can think of now.
The view that interests you is embedded as
tableView.tableHeaderView. You may create your own brand new view overlaying the table and move the buttons:Thats another nasty hack, but this is all I can tell you without knowing how your superclass is built.