One Quickie


Popping the current view controller (UINavigationController->General)
Say the user selected a row in a tableview, and now we're done with this view controller:
- (void)tableView: (UITableView *) tableView
    didSelectRowAtIndexPath: (NSIndexPath *) indexPath {

    // might want someone to know what the user picked.
    [_delegate kindChooser: self
               choseWorkoutType: mapRowToWorkoutType(indexPath.row)];

    // pop ourselves off the stack.
    [self.navigationController popViewControllerAnimated: YES];

} // didSelectRowAtIndexPath



borkware home | products | miniblog | rants | quickies | cocoaheads
Advanced Mac OS X Programming book

webmonster@borkware.com