Hello,
I've got UITableViewController and the body of the tableView:didSelectRowAtIndexPath: method is following:
if (indexPath.row == 0) {
MyViewController *myViewController = [[MyViewController alloc] initWithNibName:@"MyViewController" bundle:nil];
[self.navigationController pushViewController:myViewController animated:NO];
[myViewController release];
}
[tableView deselectRowAtIndexPath:indexPath animated:YES];
Unfortunately when I select the first row in the table view then my view in not displayed. When I debug I can see that it goes into the if statement, view controller is initialized and pushed onto the stack, but the view does not appear.
Any ideas? Thanks!