开发者

setting an uitableview cell a tag and retriving it

i have tried to set up a uitableview cell to be given a tag however i am not sure how to ge开发者_如何学编程t the cell to become tagged on user input (uibutton) and then the code required to retrieve the multiple items or single item tagged.


Well, without understanding exactly what you plan to do, indexPath points to the selected cell.

If you try to keep object references you could move all information you need to an instance variable type NSArray/NSDictionary from cellForRowAtIndexPath.

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜