Tutorial :action for selecting an index in an indexed uitableview


I have sectionIndexTitlesForTableView implemented in my controller class. when I selected an index, I want to have my custom action. Is there a way to do it?


I think what you are wanting is something to happen when you select an item in the table?

implement the delegate method

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


I don't think you can override the default behavior of the index, nor do I think doing so a good idea. It's meant as a shortcut to jump to a specific section in the table, and is used as such in every other app that uses section indexesâ€"what custom behavior do you want, exactly?

Note:If u also have question or solution just comment us below or mail us on toontricks1994@gmail.com
Next Post »