Property 'navigationController' not found on object of type '...'

问题在于NSObject里面没有这个属性

修改代码如下:

SecondViewController* second=[[SecondViewController alloc]init];
    AppDelegate * appDelegate = (AppDelegate *)[[UIApplication sharedApplication] delegate];
    [appDelegate.navController pushViewController:second animated:YES];


你可能感兴趣的:(iphone)