Setting static cells in uitableview programmatically

后端 未结 5 1462
温柔的废话
温柔的废话 2021-01-02 17:11

I am programmatically creating a tableview in objective c. How can I make the cells static programmatically?

Thanks

5条回答
  •  既然无缘
    2021-01-02 17:38

    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.

提交回复
热议问题