Created
February 21, 2014 07:08
-
-
Save keicoder/9130042 to your computer and use it in GitHub Desktop.
objective-c : table view accessory-tapped delegate method
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| //table view accessory-tapped delegate method | |
| #pragma mark - Accessory-tapped 델리게이트 메소드 | |
| - (void)tableView:(UITableView *)tableView accessoryButtonTappedForRowWithIndexPath:(NSIndexPath *)indexPath | |
| { | |
| if (debug==1) {NSLog(@"Running %@ '%@'", self.class, NSStringFromSelector(_cmd));} | |
| UINavigationController *navigationController = [self.storyboard instantiateViewControllerWithIdentifier:@"ListNavigationController"]; | |
| ListDetailViewController *controller = (ListDetailViewController *)navigationController.topViewController; | |
| controller.delegate = self; | |
| Checklist *checklist = [self.dataModel.lists objectAtIndex:indexPath.row]; | |
| controller.checklistToEdit = checklist; | |
| [self presentViewController:navigationController animated:YES completion:nil]; | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment