Is it possible to set up a UITableView/UITableViewController with static data? Or is it always required to fill out the UITableViewDataSource protocol and return individual entries and create cells on demand?
In this case, what I’d like to do is just use a quick tableview controller to have a user pick from a short list of known values that won’t change. It seems like a lot of extra work to have to fill out all those functions for static data.
By “static data” do you mean hard coded rather than from a data source?
Either way the process is the same. You have to return cells via cellAtIndexPath: You can do this quite simply with an “if block” assuming all you want is a couple of hard coded rows.
For example:
It’s pretty straightforward once you know the Cocoa way, but it’s not “simple”.