开发者

iPhone SDK: checking which button is clicked and loading specific variables

I have 48 items each 开发者_开发问答named item1,item2,item3,...,item48,etc in interface builder and have 2 strings and 1 image URL linked to each item.

ON clicked, the item present a modal view which should contains the 3 specific variables in a tableview.

how do i program such that when each item is clicked, the modal view will display the specific variables of the individual item?


Hmm. You can create one view controller with tableView and use it as modalView controller. The table's data source will be an array. So you can only change content of your array on button clicks and call your modal viewController.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜