开发者

iOS: buttons in tableviewcell

Hi I am using a custom tableview cell that has an up/down button for it. What the buttons do is increase/decrease the rating of the content of the tableviewcell.

How do I write this method so that it will print out button pressed: up for cell: #17?


Look at the documentation for UIControl. More specifically addTarget:action:forControlEvents:. Just do that in your cellForRowAtIndexPath:

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜