I am programmatically creating a tableview in objective c. How can I make the cells static programmatically?
Thanks
It is pretty common to want to build a simple table to use as a menu or form, but using the built in API with the datasource and delegate callbacks don't make it easy to write or maintain. You may need to dynamically add/remove/update some cells, so using Storyboards by itself won't work.
I put together MEDeclarativeTable to programmatically build small tables. It provides the datasource and delegate for UITableView
. We end up with an API where we provide instances of sections and rows instead of implementing datasource and delegate methods.