I have a screen displaying all the matches I’m currently in, in my turn-based game. I am using a table view with 3 sections for this.
Now I want to add a button ‘start new game’ to the top above the displaying games. Below the displaying games I want a few buttons like ‘shop’ etc. I can place them but then they won’t scroll along so I need to put them in the tableview so they scroll along.
What would be the best way to do this?
I’m not sure exactly where you want your button, but UITableView have a
@property(nonatomic, retain) UIView *tableHeaderViewIf you want it to be on the top of your tableView and scroll with it, just make the view you want and put it in that property.