简体   繁体   中英

Same view on navigation in ios6

In my application i use the following code to navigate to a new view on receiving a click, It is working properly on iOS5. However, When i try with ios6 it is showing the current view and Is not goin to the next view. Do i need to change anything for ios6 in this code.

please help me to solve.

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

Try these lines:

 scoreview *sview=[[scoreview alloc]  initWithNibName:@"scoreview" bundle:[NSBundle mainBundle]];

[self.navigationController pushViewController:sview animated:YES];

能否请您检查您的视图是否与UIInterfaceBuilder正确连接

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