开发者

Table view function for select row

开发者 https://www.devze.com 2023-03-31 17:08 出处:网络
I am new for iPhone development. I want to make table view in which开发者_Python百科 i have shown list of categories. When user select on any row then appear a right sign or UITableViewCellAccessoryCh

I am new for iPhone development. I want to make table view in which开发者_Python百科 i have shown list of categories. When user select on any row then appear a right sign or UITableViewCellAccessoryCheckmark. And the text of that row save in a string. How do that in table view? Which method or function used?


When you configure a table view, you give it a delegate that implements the UITableViewDelegate protocol. One of the many messages sent to the delegate is -tableView:didSelectRowAtIndexPath:. As the creator of the delegate, you can implement this method to take whatever action you like when the user selects a row in the table.

0

精彩评论

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

关注公众号