Menu
  • HOME
  • TAGS

With custom view controller transitions, where do I get to hide the status bar?

ios,swift,uiviewcontroller,ios8,uipresentationcontroller

The following code will fix the crash. let controller = presentingViewController as UINavigationController let ctl = controller.topViewController as ViewController ctl.testFunction() ...

Setting UIModalPresentationStyle for iPhone 6 Plus in landscape?

ios,uipresentationcontroller

Implement the new (as of iOS 8.3) adaptivePresentationStyleForPresentationController:traitCollection: method of UIAdaptivePresentationControllerDelegate: - (UIModalPresentationStyle)adaptivePresentationStyleForPresentationController:(UIPresentationController *)controller traitCollection:(UITraitCollection *)traitCollection { // This method is called in iOS 8.3 or later regardless of trait collection, in which case use the original presentation style (UIModalPresentationNone signals no adaptation) return UIModalPresentationNone; }...

UIPopoverPresentaionController

xcode,swift,ios8,uipresentationcontroller

The easiest way to accomplish this is via a storyboard popover presentation segue. It will handle the presented view controller instantiation for you. Add a popover presentation segue to the button that will present the popover. Give the segue an identifier. This will handle anchoring the popover to the button:...

Animate the presenting controller view while animating presented controller view

objective-c,ios8,uipresentationcontroller

I am using UIModalPresentationCustom as the modal presentation style for the view that I am presenting. Well, there's your problem. In that case, the From view will be nil. It is nil unless you are using the FullScreen presentation style. I'm not saying you are wrong to make the...