Questions tagged [uimodalpresentationstyle]

157 questions
6
votes
1 answer

UIModalPresentationCurrentContext - Rotation Methods not called

I'm attempting to present a VC on top of a VC using UIModalPresentationCurrentContext in order to see the view behind it. The code below works: UIViewController *transparentViewController = [[UIViewController alloc]…
5
votes
3 answers

modalPresentationStyle default value in iOS 13

As per apple documentation, The default value for this property is UIModalPresentationStyle.automatic In iOS 12, the default value was UIModalPresentationStyle.fullScreen, and that what I get. But when I am running my app on iOS 13 I am getting…
Zohaib Brohi
  • 576
  • 1
  • 7
  • 15
5
votes
0 answers

Ensure presentingViewController for a popover is the original presenter

I have a container view controller. One of the child view controllers needs to present a popover. The problem is that the popover's presentingViewController ends up being the container view controller and not the child view controller that presented…
rmaddy
  • 314,917
  • 42
  • 532
  • 579
5
votes
1 answer

modalPresentationStyle .overCurrentContext causing issues with remote button presses on presented view controller

I am having an issue with using the .overCurrentContext modalPresentationStyle on a tvOS view controller: let vc = UIStoryboard(name: "", bundle: Bundle.main).instantiateInitialViewController() //representative of actually presented…
5
votes
0 answers

iOS 10 UIViewController presented with Over Current Context is not rotating when device orientation is changed

I've setup the Presentation type to Over Current Context in Storyboard. When the segue is called the new UIViewController appears correctly. However when the device orientation changes the new UIViewController does not rotate even though its parent…
4
votes
1 answer

iOS 13 modalPresentationStyle = UIModalPresentationFullScreen not working for MFMessageComposeViewController

As we all know from the iOS 13+ modal presentation style for normal UIViewController will default to .pageSheet. If you want to change it you can change it to your's desired style when presenting it. I am using MFMailComposeViewController and…
4
votes
1 answer

Facing warning issue while debugging

Background I'm taking screenshot of a viewController and presenting that in collectionViewCell. Layout of collectionViewCell is horizontal but as I select a view then rotate the device then later going back to collectionView the layout comes as…
nikhil84
  • 3,235
  • 4
  • 22
  • 43
4
votes
1 answer

How to use modalPresentationCapturesStatusBarAppearance = NO with a custom UIPresentationController?

I have a custom UIPresentationController and overrides frameOfPresentedViewInContainerView for a custom viewController presentation. Everything works fine, except for the status bar. I do not want the status bar to change appearance at all – it…
4
votes
1 answer

iOS 7 Custom push transitions to a transparent view controller, keeping from view controller's view visible beneath

I'm creating a custom push transition (UINavigationController) from one view controller to a view controller who's view is transparent with blur. I want the "from" view controller to remain visible beneath the newly pushed view controller. I know…
4
votes
3 answers

How can I find portion of my view which isn't covered by the keyboard (UIModalPresenationStyleFormSheet)?

I've got a view controller showing a view with a UITextView, and I want to resize the view when the keyboard appears so that the UITextView isn't covered by the keyboard. I have this working correctly in almost all cases. I'm still seeing some…
3
votes
3 answers

iPad: UIModalPresentationFormSheet fails on landscape mode

We've the next problem in our iPad version. I've a NavigationController inside a UITabBar. I want to show a Form with a look&feel similar than the e-Mail form. I use the same code to show a model centered: // View to be displayed in the…
3
votes
1 answer

How to push ViewController on full screen from modally presented ViewController with navigation controller iOS 13?

I have a situation where I have three viewcontroller let suppose VC1, VC2 and VC3, and I presented VC2 on VC1 modally with navigation controller like let nav = UINavigationController(rootViewController: VC2) self.present(nav,…
golu_kumar
  • 231
  • 2
  • 9
3
votes
1 answer

What's the difference between currentContext and overCurrentContext?

The docs for both currentContext and overCurrentContext have an identical description. The differences I can spot are: since when they are available: @available(iOS 3.2, *) case currentContext @available(iOS 8.0, *) case overCurrentContext With…
Manuel
  • 14,274
  • 6
  • 57
  • 130
3
votes
3 answers

uncaught exception 'NSGenericException: application has presented a UIAlertController of style UIAlertControllerStyleActionSheet

I am working on an app which i run on iPhone works well but when i am trying to run on iPad it crashes Here is my code: - (void)parseCountryStates:(NSDictionary *)json { countryPickerView.hidden = TRUE; NSDictionary *listing = [json…
3
votes
0 answers

Resizing height of formsheet presentation on an iPhone

By using UIAdaptivePresentationControllerDelegate, I was able to get a view controller presented in the style of form sheet. Setting the preferredContentSize can change the width of the vc but not the height, why? screenshot of preferredContentSize…
1
2
3
10 11