Sunday, December 1, 2013

iOS closing multiple modal view

In the first child of the parent view create view through presentModalViewController, and then create a second child in the first view from the view. How to return to the original parent view in the second sub-view.
Reply:
This plate deserted feel good ah. . .
Reply:
Answer questions on those few people, for your question, you slowly wait.
Reply:
reference to the second floor of the reply:
answer questions on those few people, for your question, you slowly wait.

By the way, the last minute not to you, you go http://topic.csdn.net/u/20120705/16/f65aef20-e8a9-4e42-9ecc-03f7b15d4301.html reply, you just a little longer to reply text, or put your answer in the original post where the paste up.
Come on, ah, top up
Reply:
Are present, then try this out:
if ([self respondsToSelector: @ selector (presentingViewController)]) {
[Self.presentingViewController.presentingViewController dismissModalViewControllerAnimated: YES];
}
else {
[Self.parentViewController.parentViewController dismissModalViewControllerAnimated: YES];
}
Reply:
You go to the sub me. You can perform this and other dismissModalViewControllerAnimated finished send a message to its parent view, let it run dismissModalViewControllerAnimated

No comments:

Post a Comment