Questions tagged [uimodalpresentationstyle]
157 questions
0
votes
1 answer
Present a view controller modally over current context when the view controller gets load from a nib file
I need to present view controller B which is being loaded from a xib file over an existing view controller A loaded from storyboard.
If I load view controller B from storyboard it works properly and will be presented over current context of view…

Samira
- 215
- 2
- 14
0
votes
1 answer
How to: Change UIModalPresentationStyle from .automatic to .fullscreen for a UIViewController
I attempted to set modalPresentationStyle to .fullscreen following the Apple Documentation.
After setting the modalPresentationStyle to .fullscreen shown in the code below, the system still presents the viewControllers in…

Joshua
- 481
- 6
- 21
0
votes
0 answers
Drag and Drop image with iOS 13 modalPresentationStyleAutomatic
I've a problem to drag and drop images with the new presentation style automatic.
The images are subclass of UIImageView
overriding func touchesBegan, touchesMoved and touchesEnded. I've also tried to put self.superview?.isUserInteractionEnabled =…

Simone Pistecchia
- 2,746
- 3
- 18
- 30
0
votes
1 answer
iPad - Dismiss keyboard for modal view controller in UIModalPresentationFormSheet mode
In my iPad app I want to present some view controllers in UIModalPresentationFormSheet modal mode without keyboard.
I use it to display help as an example.
At the moment I use the code found on the one of stackoverflow answers to dismiss it:
//…

Lukasz
- 19,816
- 17
- 83
- 139
0
votes
0 answers
Clear background for modalPresentationStyle declared as 'formsheet'
I want to set a clear background for modalPresentationStyle declared as formSheet.
Is it possible to customize?

user2210869
- 51
- 4
0
votes
0 answers
How do I hide the status bar in an iOS app without causing the UINavigationBar to jump?
I have a view controller that needs to hide the status bar before presenting a modal and after that modal is dismissed.
This is not as simple as overriding prefersStatusBarHidden and then setting modalPresentationCapturesStatusBarAppearance because…

Tony
- 18,776
- 31
- 129
- 193
0
votes
1 answer
UITabBarController's viewControllers present modal controller issue
I have a UITabBarController with 4 viewControllers setup.
One of the controller has a button that present another controller (wrapped on UINavigationController) with the following setup:
self.definesPresentationContext =…

José Roberto Abreu
- 176
- 1
- 14
0
votes
1 answer
Swift: extension of enum UIModalTransitionStyle
How can I add a new case in enum UIModalTransitionStyle?
Is that feasible using swift extension?
Swift document about extension says that: Extensions add new functionality to an existing class, structure, enumeration, or protocol type.
Does it…

Krunal
- 77,632
- 48
- 245
- 261
0
votes
1 answer
How to show image in overCurrentContext view in the ViewController2.swift class?
How to show image in overCurrentContext view in the ViewController2.swift class ? I am doing this correctly when i worked manually but not doing when i using this programmatically in swift.
ViewController1.swift code -
@IBAction func btnImage(_…

Creative Study
- 93
- 1
- 8
0
votes
1 answer
My GameScene Freezes when i dismiss modally presented viewController
I am working on SpriteKit Game. From within GameScene i want to represent another viewController. I have done it correctly, but when i dismiss Modally presented viewController, GameScene on my Root viewController freezes. Here is my code on…

Apar Parmar
- 79
- 1
- 6
0
votes
1 answer
How to present modalViewController over all VC's in TabBarController
I have a UITabBarController with 5 tabs. I want to be able to present a ViewController over all of the tabs, just above the Tab Bar. Currently the issue I am having is that when I present the ViewController modally, it is not visible. I have this…

Marshall Scudder
- 77
- 18
0
votes
1 answer
Can't see content from view controller under navigation controller
This question has come up before but the accepted solutions don't seem to fix my problem which is why I'm hoping another set of eyes will catch what I'm doing wrong. I'm trying to present a 2nd navigation controller where the background is dark and…

Vee
- 1,821
- 3
- 36
- 60
0
votes
2 answers
Reload UITableView after dismissing programmatically modally presented UIViewController
I have two ViewController. First ViewController has a TableView. I present second ViewController programmatically modally. In second ViewController I download an image. Now I dismiss the second ViewController after completion of the download. And in…

Tanvir Nayem
- 702
- 10
- 25
0
votes
3 answers
Swift3: Crash on presenting pop over
let obj = MainStoryboard().instantiateViewController(withIdentifier: "SomeVC") as! SomeVC
obj.delegate = self
obj.modalPresentationStyle = .popover
obj.popoverPresentationController?.sourceRect = CGRect(x: self.view.bounds.midX, y:…

sweta.me
- 273
- 1
- 11
0
votes
1 answer
iOS 7 overrides CurrentContext modal presentation
I have a pretty standard view hierarchy, mainly with a UITabBarController containing several UINavigationControllers.
I'm creating a new UINavigationController and presenting it modally from within one of the tabs.
I want it to show with…

ABeard89
- 911
- 9
- 17