I currently have a tab bar view controller with a navigation view controller within each of my two tabs. Each navigation controller has a table view controller. I want to populate both tables with the same information, but in a different sorting order. All of my information is currently contained in a plist – one big array which contains 30 dictionaries which have 3 or 4 strings each. How do I get my tables to populate each cell according to the string for each for key “A” in each dictionary? I’ve done all the work in Interface Builder regarding associations and class references. Thanks so much!
I currently have a tab bar view controller with a navigation view controller within
Share
I recommend you look at some of the examples in the documentation for
UITableView. The main things you will need to do are to set up a data source that must adopt theUITableViewDataSourceprotocol and, if you have a delegate, that must adopt theUITableViewDelegateprotocol. Then you can load the data into the table using the method: