Tuesday, September 24, 2013

dismissViewControllerAnimated problem, neighborhoods! ! !

There is a view control device A, A is to display a list of the data on the list, as follows:

Click on the list of data to another view control device B,

Jump with this code: [self presentViewController: B animated: YES completion: nil];

However, in view of the control device B is - (void) viewDidLoad call on my direct view control device A, [self dismissViewControllerAnimated: YES completion: nil]; (about why you want to call this code, because the B's on viewDidLoad I checked out some of the data, but the data is wrong, you want to jump back to A) when prompted


2013-04-22 16:58:38.042 CPE-PANNEL [7324:12313] Warning: Attempt to dismiss from view controller while a presentation or dismiss is ; in progress!

The view control device B does not disappear on the screen, solving
Reply:
Should be invoked only in viewDidAppear in view control device A, [self dismissViewControllerAnimated: YES completion: nil];, and also in the main thread call, do not understand, temporarily resolved

No comments:

Post a Comment