How can I dynamically populate a UITableView control?
Using UITableView
, I can display a list of items using an array in rootViewTabel
, how can I display another list in the nextView
of the table?
My first view displa开发者_C百科ys a list of months from jan - dec.
On selecting a particular month I want to display the list of festivals for that month in the same table.
What code should I include?
When the app launches use your root view controller to display the list of months. When the user taps on a particular cell, push another view controller which will in turn display the list of festivals for the selected month.
Following this way would be very easy to learn and implement.
Here are a few links that will help you learn and implement it easily.
Easy custom UITableView drawing
iPhone Programming Tutorial – Populating UITableView With An NSArray
So go ahead and code...
精彩评论