first,i need to count the items from array.
<dict>
<key>New item</key>
<array>
<string>apple</string>
<string>orange</string>
</array>
</dict>
second,load the items into tableview.example,table cell 1 with apple,table cell 2 with orange.
third,create buttons in table cell by count items from array.
fourth,set buttons title with items value.example,button”apple” and button”orange”.
where should i start from?
Start with creating a retained property that will be your UITableView’s data source.
in .h file
Next extract the array from dictionary into your data source
Next implement your table view’s data source protocol with two methods:
So you must learn about delegation and what protocols are. Read the UITableView programming guide for more information.