简体   繁体   中英

NavigationController pushViewController doesn't work

 GetNeedItemsViewController *getNeedItemsViewController = [[GetNeedItemsViewController alloc] initWithNibName:@"GetNeedItemsViewController" bundle:nil];
 [self.navigationController pushViewController:getNeedItemsViewController animated:YES];

在此处输入图片说明

I dont know why the getNeedItemsViewController doesn't displayed.

Help me with this, thank you in advance!

Have you added content on the GetNeedItemsViewController ? From the image it looks like it is added but that it is empty. And at the moment you have a memory leak. One option is to auto-release it the controller.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM