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
1 reply

This thread has been closed by the system or the community team. You may vote for any posts you find helpful, or search the Community for additional answers.

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.