 <p>if you are using storyboard to get a viewcontroller ,you can try this.</p> <pre><code>-(void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath { UIStoryboard *storyboard = [ UIStoryboard storyboardWithName:@"Main" bundle:nil ]; SecondViewController *vc = [storyboard instantiateViewControllerWithIdentifier:@"test" ]; vc.title = @"something"; [self.navigationController pushViewController:detailView animated:YES]; } </code></pre>