You can make a difference in the Apple Support Community!

When you sign up with your Apple Account, you can provide valuable feedback to other community members by upvoting helpful replies and User Tips.

Looks like no one’s replied in a while. To start the conversation again, simply ask a new question.

Pushing the same view controller instance more than once is not supported

i used the below line in three different methods

[viewController.navigationController pushViewController:newsDetailPrev flipStyle:style];

[viewController.navigationController pushViewController:newsDetailNext flipStyle:style];

[viewController.navigationController pushViewController:newsDetailcurrent flipStyle:style];


but it shows error.the error is Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: 'Pushing the same view controller instance more than once is not supported.

can any one resolve my issue

thanks in advance

Posted on Aug 21, 2015 1:12 AM

Reply
Question marked as Top-ranking reply

Posted on Aug 21, 2015 1:20 AM

You have already pushed one of those three viewControllers somewhere else in your code previous to these lines.

1 reply

Pushing the same view controller instance more than once is not supported

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple Account.