ipad - iOS: Presenting a UIViewController modally (form sheet/page sheet) over splitViewController -
I have a UISplitViewController (rootview controller) and a UIViewController, vc1.
I am trying to present vc1 on my partition view controller from the MasterViewController part:
vc1.modalPresentationStyle = UIModalPresentationPageSheet; [Self-present ViewController: animated vc1: yes complete: zero];
This raises an exception:
Exclude the application due to non-exception exceptions' NSInvalidArgumentException ', Reason:' An active controller in the application Tried to present the form & lt; MasterViewController: 0x8c5dd30 & gt; '
... and crashed.
Tried it:
[self.splitViewController presentViewController: animated vc1: yes complete: zero];
This raises an exception:
Exclude the app due to the exception of the exceptions' NSINID IDA Agreement Exception ', the reason:' The application has an active controller Tried to present & lt; UISplitViewController: 0x8c7e3a0 & gt; '
However, if I try it with the interface builder (seguase), then it works.
How do I present a view controller, as a programmatically programmed view controller (pages sheet or form sheet) modally?
You can tell detailView controller to show me something like this.
DetailVC * detailVC = [self.splitViewController.viewControllers objectAtIndex: 1]; [DetailView Current ViewController: Animated vc1: Yes Completed: Zero];
I think the problem is that your master is presenting a detailed view and that is why he can not present anything else, so you can do it for yourself See in detail for
Comments
Post a Comment