I have 3 view controller. my firstview controller i mean root view controller is normal view controller that not a navigationcontoller. i want my 2nd view controller as a navigationcontoller to push 3rd and 4th viewcontrollers. below image its showing exact my storybord but when i navigate its not working kindly guide me where i'm doing wrong.
this is the code i'm using for navigate to another view controller
- (void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath
{
ViewController2 *yourViewController = [self.storyboard instantiateViewControllerWithIdentifier:@"ViewController2"];
[self.navigationController pushViewController:yourViewController animated:YES];
}

