Questions tagged [uipopoverpresentationcontroller]
51 questions
0
votes
2 answers
Horizontal size class of popovers in Catalyst?
If I present a view controller as a popover on iPad (by setting its modalPresentationStyle to .popover), it will report its horizontal size class as .compact. But if I run the same code in a Catalyst app, the view controller in the popover reports a…

Tom Hamming
- 10,577
- 11
- 71
- 145
0
votes
1 answer
Swift - Popover controller shows up on wrong corner depending on load time
I recently started having an issue where the popover controller will some times show up on the wrong corner. When it works correctly, the popover source is a button on the upper right corner. This is what happens most o the time. Now, when I land…

paco8
- 63
- 6
0
votes
1 answer
IPAD Presenting a UIActivityViewController from a UIAlertController style UIAlertControllerActionSheet "unable to simultaneously satisfy constraints"
I am presenting a UIAlertController as an action sheet, with a button that should open an ActivityView when selected....
Both of these methods are in the same ViewController class... and work perfectly fine on iphone 8, iPhone Pro 11 Max, etc.. but…

Speckpgh
- 3,332
- 1
- 28
- 46
0
votes
0 answers
How to avoid having two UIPopoverPresentationControllers up at same time each from UIBarButtonItem in UItoolBar
I'm in the process of converting an old iOS app which uses UIPopoverController to the new UIPopoverPresentationController. I have two popovers (A & B) each initiated from a click on a UIBarButtonItem (butA, butB) in a UIToolBar. I have the popovers…

user3134818
- 1
- 3
0
votes
5 answers
How to add tap gesture to a dimmed view background?
I've been trying this for awhile. The code below is my UIPresentationController. When a button is pressed, I add a dimmed UIView and a second modal (presentedViewController) pops up halfway.
I added the tap gesture recognizer in the method…

Marik
- 1
- 2
0
votes
1 answer
Popover View positions to wrong place when rotated
I may trying to center a popover and make it still centered after rotation. The research almost answered my question. However, I have noticed a very strange problem: when I initiate a popover when the device is in portrait direction, it is firstly…

Collin Zhang
- 483
- 5
- 14
0
votes
2 answers
Swift: Set UIBarButtonItem as source for popover WITHOUT tap?
I want to show a popover on iPad as soon as my view loads having as source a button on the top right corner.
The popover displays properly on button tap, but I'm having trouble finding a way to display it without the button tap, when the page first…

paco8
- 63
- 6
0
votes
1 answer
Presenting a popover without segue -- Popover is still full screen
I have a UIViewController with a button in it that I made programmatically (Let's just call it MyViewController). I am trying to present a popover when the button is tapped. Let's call the popover DestinationViewController. The button will call the…

AMichael
- 25
- 4
0
votes
1 answer
popover permittedArrowDirections = .left/.right messes with popover framing
Since migration to Swift 5, popovers that have permittedArrowDirections set to .left/.right render slightly off-center from where they're supposed to be. However, when setting permittedArrowDirections to .top/.bottom, the problem goes away. Please…

Plutovman
- 677
- 5
- 22
0
votes
1 answer
iOS: Why the share of medias (images, videos or pdf) works on iPhone but not on iPad?
I have a piece of code that works very well on iPhone, but not on the iPad. It is like the window is there but not visible...
func userDidTapShare()
{
print("Share")
let mediaURL = URL(fileURLWithPath:…

ΩlostA
- 2,501
- 5
- 27
- 63
0
votes
0 answers
How to get the size of UIActivityViewController popoverPresentationController?
How Can I get the size of the UIActivityViewController popoverPresentationController?

Marry G
- 377
- 1
- 3
- 16
0
votes
1 answer
UIPopoverPresentationController programmatically created fills the screen
The popup that I am creating programmatically fills the screen. As you can see from the example code, I have tried many ways to limit its size, but none are working. Also, the delegate methods are not being called. Any ideas? I have used CALayer…

Gary Norris
- 1
- 1
- 2
0
votes
2 answers
popover is not working in swift 4
I am using UIPopoverPresentationControllerDelegate to show my popover, it's working fine but not able to manage width and height of the popover viewController. And how to set Presentation over current context ??
func tableView(_ tableView:…

lpd
- 165
- 10
0
votes
1 answer
Interacting with contents of UIPopoverPresentationController on regular sized iPhones?
It appears - at least by default, that while you can interact with the contents of a popover on a plus iPhone and dismiss it by tapping on the background, on a regular, non plus phone, the behavior is the opposite.
Does anyone know how to correct…

Chris Conover
- 8,889
- 5
- 52
- 68
0
votes
1 answer
Old method of handling UIPopovers not working; copied code, now getting crash
**** UPDATE** getting the following crash: [UploadViewController _viewForPresenting]: unrecognized selector sent to instance 0x7abe4c00**
The old way of using UIPopOvers was deprecated in iOS 8; so I tried to upgrade; unfortunately it's not…

SpokaneDude
- 4,856
- 13
- 64
- 120