Questions tagged [uimodalpresentationstyle]

157 questions
2
votes
1 answer

Notification when view controller is presented modally/dismissed?

Is there any way to be notified automatically if some view controller is presented modally on top of another view controller (other than viewWillDisappear, which is obviously not called for non-fullscreen modal presentation on iPad)? Background/use…
2
votes
1 answer

Change UIStatusbarStyle even with UIModalPresentationOverFullScreen

I currently use UIModalPresenationOverFullScreen to present the next controller and at this moment I want to change the UIStatusBarStyle. The previous controller has got the UIStatusBarStyleDefault but in the current I want to use…
2
votes
1 answer

Resize Navigation Controller presented modally UIModalPresentationFormSheet as each new view controller is pushed

Setup: 'VC1' creates 'NavigationVC' with a root view controller 'VC2' and presents it modally with presentation style UIModalPresentationFormSheet. 'VC2' shows up inside the nav controller in the middle of the screen with the correct size. Issue:…
2
votes
2 answers

UIModalPresentationStyle.PageSheet does not display ViewController content

I currently have a segue that presents a VC modally in PresentationStyle.PageSheet. I have done this both programmatically and with just the storyboard. I get the same result with both approaches, the modal pop over presents itself but does not show…
2
votes
0 answers

Presenting UIImagePickerController over modally presented view controller does not work correctly in iOS 8

I have presented UIImagePickerController from modally presented view controller. After clicking the image I get a black image instead of the clicked picture I did something Like this. //From ViewController1 I presented view controller2 with -…
Manoj
  • 1,019
  • 9
  • 17
2
votes
2 answers

My viewController doesn't show up right

in my iPad-app I am trying to present one of my views with a modal formsheet-style. Here's some code: -(void)present { SecondViewController *modal = [[SecondViewController alloc]init]; modal.modalPresentationStyle =…
Sti
  • 8,275
  • 9
  • 62
  • 124
2
votes
1 answer

iOS universal binary - switch ModalPresentationStyle

I usually do apps for iPhone ; today I try to create an interface for the app (universal binary). The issue is I have screens with few controls and I would like to adapt the interface, with UIModalPresentationFormSheet. But after the screen which…
1
vote
3 answers

How to resize a modalViewController with UIModalPresentationPageSheet

I have a modal view controller that I show with UIModalPresentationPageSheet. The problem is that its default size is too large for my content: so I want to resize its frame to adjust accordingly with my content. Does anyone know of a way/trick to…
Fry
  • 6,235
  • 8
  • 54
  • 93
1
vote
1 answer

UIPresentationController multiple sizes or detents

I am working on trying to implement a presentation controller that essentially mimics the behavior of the UISheetPresentationController. I am doing this because I want to add a third detent and also I want this to work for iOS 14, so I cannot use…
1
vote
2 answers

iPad Modal UIViewControllers position

How do I position this ViewController over the detail view modally? I want it to be right aligned so you can see the navigation portion greyed out. [self.window addSubview:self.splitViewController.view]; MyModalViewController *modalvc=…
1
vote
0 answers

Modal view controller presenting over full screen, mvvmcross, xamarin.ios

I am able to simulate a modal view controller by displaying the MvxViewController with MvxModalPresentation attribute, but it doesn't respond to setting its content size or the views height. The presentation is always full frame height minus few…
Async-
  • 3,140
  • 4
  • 27
  • 49
1
vote
0 answers

How do I achieve this in Swift using Xcode 11?

Since default Modal Presentation Style is now page sheet, some apps have this tiny grey rectangle on top of the view (inside the circle in green). Is there a way to add without create a custom UIView?
1
vote
0 answers

Landscape app on modal presentation style iOS 13

Is any restriction on iOS 13 on orientation Landscape, for modal presentation style View Controllers? For fullScreen presentation style works, but on modal freezing and crashes. App delegate: -…
pajtimid
  • 518
  • 1
  • 4
  • 13
1
vote
1 answer

iOS 13 Fullscreen UIImagePickerController?

I'm updating an app for iOS 13 support and one of the requirements (for now) is to convert all of the modal UIViewControllers back to UIModalPresentationStyle.fullScreen, but the UIImagePickerController does not seem to respect the value I'm passing…
Lucas P.
  • 4,282
  • 4
  • 29
  • 50
1
vote
1 answer

Present view controller embedded in navigation controller with custom animation

I have vc1, which is presenting navigation controller, which contains vc2. The segue between vc1 and navigation controller is "Present Modally", vc2 appears with standard animation, from the bottom to the top. I want to present vc2, embedded in…