开发者

Selection of tableview cell's index path

开发者 https://www.devze.com 2023-01-22 21:01 出处:网络
I have a question regarding the selection of table cells. I have three grouped tables which are used as forms, only one of which should be in view at a time. So in the nav controller I have a button

I have a question regarding the selection of table cells.

I have three grouped tables which are used as forms, only one of which should be in view at a time. So in the nav controller I have a button which presents another table in a popover with the title of all three forms and will control which form is currently available. So to show only one at a time manually is easy enough, but how do I go about detecting the selection of a certain cells indexPath upon selection and communicate that selec开发者_StackOverflow社区tion with another view controller?


You are getting it as part of

- (void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath

for the table view delegate.

Also, it might be worth considering using a segmented control for the selection.

0

精彩评论

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