Questions tagged [uipresentationcontroller]

Introduced in iOS 8, UIPresentationControllers allow you to control the "chrome" during a custom view controller transition.

Introduced in iOS 8, UIPresentationControllers allow you to control the "chrome" during a custom view controller transition.

95 questions
0
votes
1 answer

Dynamically Adjust Width of Table View Embedded in Popover to Fit Cell Content

My landscape, iPad app has a table view controller presented as popover from a bar button item. To fit the popover to the table view size, I do this on the table view controller's code: override func viewDidLoad() { super.viewDidLoad() …
Nicolas Miari
  • 16,006
  • 8
  • 81
  • 189
0
votes
1 answer

When creating a UIViewController that doesn't take up the full screen, how do I dismiss it by tapping outside?

I'm following this tutorial to make a overlay view controller, using frameOfPresentedViewInContainerView in iOS 8, but I'm curious, how would I then close this view controller based on tapping outside of the visible area?
Doug Smith
  • 29,668
  • 57
  • 204
  • 388
0
votes
1 answer

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

Sample Project: http://cl.ly/1C0N0E0f3n2P I'm trying to create a custom transition to a view controller in iOS 8. I'm using a UIPresentationController as well as an NSObject subclass that implements UIViewControllerAnimatedTransitioning, basically…
Doug Smith
  • 29,668
  • 57
  • 204
  • 388
-1
votes
2 answers

iOS get notified in parent viewcontroller when presented viewcontroller is dimissed

I have a view controller which presents another view controller and within the presented viewcontroller , user makes choices which will lead to many other notifications to be pushed but when we dismiss the presentation viewcontroller I would like…
-1
votes
1 answer

Can not dismiss NavigationController

Hello guys I have a problem to close my NavigationController. This piece of code is not working for me. When I try to call it in my ViewController @IBAction func backButtonPressed(_ sender: UIBarButtonItem) { …
1 2 3 4 5 6
7