Questions tagged [uipresentingcontroller]
7 questions
6
votes
5 answers
iOS - Dismiss presented view controller touching outside its View
I have a CustomPresentationController which animates in and out with custom animations;
This specific controller gets presented, more less at 50% of the screen size, and when I present it, I add a shadow-gray view to the presentingViewController so…

Ivan Cantarino
- 3,058
- 4
- 34
- 73
2
votes
0 answers
viewWillDisappear/viewDidDisappear is not called on "presenting controller" when present controller using UIPresentationController
I can’t find a conclusive answer when presenting using UIPresentationController that declares presentationStyle to be .FullScreen or .OverFullScreen, view(Will|Did)Disappear is not called on presenting controller.
I saw some suggestions to call…

Sash Zats
- 5,376
- 2
- 28
- 42
1
vote
0 answers
programmatically present and dismiss modal viewController from show navigation stack
I am using a UINavigationController as a rootViewController and having some navigation hierarchy issues. I am presenting a viewController modally from a show segue state, but when I dismiss the modal it returns the app back to the viewDidAppear…

user3708224
- 1,229
- 4
- 19
- 37
1
vote
1 answer
IOS/Objective-C: Set property in presenting view controller
When you create a modal View Controller using code, the modal controller has the ability to access the presenting controller.
Please read following. This is the crux of question. I do not want to use delegates.
According to Apple docs:
When you…

user6631314
- 1,751
- 1
- 13
- 44
0
votes
1 answer
Hide switching of storyboards
In my application I have 2 storyboards: Onboarding and Main. When user opens app for a first time - Onboarding storyboard is presented. After that, he presses a button and I show him Main Storyboard with such code:
let storyboard =…

Taras Tomchuk
- 331
- 7
- 19
0
votes
1 answer
iOS New-Contact-Style Segue in Swift
I am trying to emulate the iOS contacts segueing between two view controllers.
I have a simple Person class given by:
class Person {
var name = ""
}
and a UIViewController that contains an array of Person, which is embedded in a…

ajrlewis
- 2,968
- 3
- 33
- 67
-1
votes
1 answer
Threading issue with unwindFrom
High level summary of my issue:
I have a UITableViewController (TVC1) that does a performSegue to invoke a static UITableViewController (TVC2) so the user can enter details. After pressing a button called "Add another" on TVC2, I want TVC2 to save…

Arjen Hiemstra
- 179
- 9