Trying to push new controller into navigationController, Not sure why it is not woking.
1) I checked the instance of secondViewController also does not work.
2). tried suffixing ‘.xib”, also not working.
3) Tried bundle:nil also not working.
I am using ARC. Can someone point out what is the issue here ?
-(void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath
{
NSLog(@" YOU SELECTED ROW ..");
secondViewController *secController = [[secondViewController alloc] initWithNibName:@"secondViewController.xib" bundle:[NSBundle mainBundle]];
NSLog (@"View Controller %@ ", secController);
[self.navigationController pushViewController:secController animated:YES];
}
I edit your code just try this.