ios - Dismiss PresentedViewController while present from UIPopoverController -


Presented Week Controller from PopOverview, this is the code I'm using

  SearchPropertyVC * SearchPropertyVC * CenterViewController = (SearchPropertyVC *) [board instantiateViewControllerWithIdentifier: @ "vcSearchPropertyID"]; UINavigationController * ConDetVC = [[UINavigationController alloc] initWithRootViewController: centerViewController]; Kondavevy Model Presentation Style = Presentation page sheet for UIImail; CondetWalk.Model Presentation Style = Presentation Sheet; Cognitivka Model Transition Style = UIModal TransactionCilterCrossDisolve; [Self-present ViewController: Animated ConDetVC: Yes Complete: Zero]; ConDetVC.view.superview.bounds = CGRectMake (0, 0, 700, 670);  

The controller is open when I was trying to shut down the controller so I am getting this warning

"Warning: Dismissed by the View Controller Presenting or rejecting, trying to do is in progress! "

After that I will click on any button to crash the app.

This code which I am using to dismiss the view

[Self-deleted view controller permission: Yes complete: zero]; [Self shotgun view controllerUnmitted: Yes complete: ^ {[UIAVG controller *) self.presentingViewController popToRootViewControllerAnimated: Yes]; }]; If ([the visual controller presenting itself is being decoded]) [Self-drawn visual controller permission: Yes complete: zero];

When I try to dismiss the same warning from the pop scene

At the bottom right on the line below.

  SearchPropertyVC * SearchPropertyVC * centerViewController = (SearchPropertyVC *) [board InstantIateViewControllerWithIdentifier: @ "vcSearchPropertyID"]; SearchPropertyVC * searchPropertyVC = (SearchPropertyVC *) [board InstantiateViewControllerWithIdentifier: @ "vcSearchPropertyID"];  

Select any one presentation style,

  ConDetVC.modalPresentationStyle = UIModalPresentationPageSheet; CondetWalk.Model Presentation Style = Presentation Sheet;  

Either the page sheet or form sheet.

And when you try to present, use that view controller you want to use.

  [auto current ViewController: Animated ConDetVC: yes complete: zero];  

And when it's being rejected, then just write,

  [Self-handler visual controller, unmoderated: Yes complete: ^ {// You will write code here }];  

Comments

Popular posts from this blog

Member with no value in F# -

java - Joda Time Interval Not returning what I expect -

c# - Showing a SelectedItem's Property -