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

问题在于NSObject里面没有这个属性
修改代码如下:
【Property 'navigationController' not found on object of type '...'】

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



    推荐阅读