Questions tagged [uipopoverpresentationcontroller]
51 questions
29
votes
9 answers
iOS 13 - UIPopoverPresentationController sourceview content visible in the arrow
When I am displaying some view in UIPopoverPresentationController and presenting it as popover
popoverCon?.modalPresentationStyle = UIModalPresentationStyle.popover
the content have moved upward toward and a some part is being display in the arrow.…

Hassy
- 5,068
- 5
- 38
- 63
12
votes
1 answer
how to use popover controller in iPhone
I couldn't show popover controller as popover in iPhone whereas it works very well with iPad.
Any ideas on how to do that in iPhone.
As far as I have searched I couldn't find any.
anyways to make the popover appear in iphone as it is in iPad is…

Shankar Naik
- 401
- 5
- 16
9
votes
3 answers
How to add a border color on a popover and its arrow in Swift?
I have the following popover in my app:
But I want it to look like this edited image (note that even the arrow has a border):
Is this possible nowadays? I already tried the following inside the UIViewController:
self.view.layer.borderColor =…

ThiagoAM
- 1,432
- 13
- 20
8
votes
0 answers
UIPopoverPresentationController popoverLayoutMargins seems to have absolutely no effect
As the title suggests, whatever values I provide for the popoverLayoutMargins, nothing seems to happen.
I am attempting to display a popover menu anchored to a UIButton. All works fine except that I would like to have the popover to expand the width…

static0886
- 784
- 9
- 25
7
votes
0 answers
Popover arrow off center when setting UIPopoverPresentationController's barButtonItem
I have a UIBarButtonItem with an image on my navigation controller:
infoItem = UIBarButtonItem(image: infoImage,
style: .plain,
target: self,
action:…

meaning-matters
- 21,929
- 10
- 82
- 142
6
votes
3 answers
UIModalPresentationPopover - arrow direction Up, Prevent Contentview from starting from tip of the arrow
in iOS 13 it happens that the view of UIViewcontroller that is presented as model starts from the tip of the arrow. Because of it top banners in all of my popover gets cut. Can I prevent this from happening ? I want that my UIView does not start…

user3519594
- 387
- 1
- 11
3
votes
1 answer
Popoverpresentation viewcontroller and constraint trouble
I try to invoke a popoverpresentation viewcontroller in order to share an image on an ipad, but when that happens I get the error 'unable to satisfy constraints'.
The thing is in order to fix this I deleted all constraints so I could start over,…

Martijn
- 59
- 4
3
votes
0 answers
App crashes when presenting a view (popover) for a second time
I've just stumbled across this issue and was wondering if anyone could help explain the problem.
When in use on an iPad, my view has a nested UINavigationController that is displayed within a popover. I've been converting this code to Swift recently…

Matt Carr
- 413
- 5
- 15
2
votes
0 answers
Changing the iOS 13 UIPopoverPresentationController blur and shadow amount?
The appearance of the modal popover view shown by the UIPopoverPresentationController in iOS 13 has changed significantly from how it looked in iOS 12. The base color is darker, the shadowing of the background is different, and the amount of…

shiny
- 21
- 2
2
votes
0 answers
Displaying a popover with TextField - keyboard cause a flicker
I was wondering if anyone has come across a weird flicker/animation with the PopoverPresentationController. The flicker occurs when there is a textField becomes the first responder. The popover appears to almost re-open on-top of an existing…

Robert
- 61
- 5
2
votes
0 answers
How to set preference to one arrow direction while using multiple UIPopoverPresentationController permittedArrowDirections?
I'm making a pop over presentation view controller where I need to use multiple arrow directions (up and down). For having multiple permittedArrowDirections I've followed Set Multiple Arrow Directions on UIPopoverController in Swift. Also I tweaked…

nayem
- 7,285
- 1
- 33
- 51
2
votes
2 answers
UIBarButtonItem not decolorized/disabled when popover is on screen
I have two UIBarButtonItems on my navigation controller:
segmentControl = UISegmentedControl(items: ["Up", "Down"])
infoItem = UIBarButtonItem(image: infoImage,
style: .plain,
…

meaning-matters
- 21,929
- 10
- 82
- 142
2
votes
2 answers
`UIViewController.present` completion handler being called immediately
I am using Xcode 10 Beta 6, so this might just be a bug.
I am trying to present a view controller (colorPickerController) as a popover. Within that view controller I will be able to set some properties, which I want to read once the popover is…

Marcus Rossel
- 3,196
- 1
- 26
- 41
2
votes
2 answers
How to update the layout (position) of a popover when its source view changes theirs in Swift?
I want to update the layout of a popover, I've already tried using the setNeedsLayout() and layoutIfNeeded() methods but couldn't find a solution.
I have a simple screen with 4 buttons that call a popover, within the popover there are 2 extra…

aaronmhr
- 21
- 4
2
votes
1 answer
UIPopoverPresentationController : multiple permittedArrowDirections order priority
Using UIPopoverPresentationController to present a view controller in a popup, you can define permittedArrowDirections property to restrict the popup positioning possibilities. We can define multiple directions using | operator…

AnthoPak
- 4,191
- 3
- 23
- 41