Questions tagged [uipopoverpresentationcontroller]

51 questions
2
votes
2 answers

ViewController content size doesn't change popover size

The popover's preferred size is only works if the height is greater than 320. I have searched a lot to solve this issue. But didn't find any answer. Is there any minimum size that the popover should satisfy in iPad? If not, what i'm…
Lal Krishna
  • 15,485
  • 6
  • 64
  • 84
2
votes
1 answer

UIPopoverPresentationController without overlay

I am implementing a popover view using UIPopoverPresentationController. The trouble with this, is that by default, I have a shadow with a large radius for the controller. I want to disable this - the overlay. I have tried: to customise the…
Laura Calinoiu
  • 704
  • 1
  • 8
  • 24
2
votes
0 answers

how to use UIPresentationController in an NSObject subclass in swift

var popVC:UIPopoverController? popVC = UIPopoverController(contentViewController: viewControl) popVC?.delegate = self popVC?.setContentSize(highlight!.frame.size, animated: false) highlight?.popVC = popVC if let dir = self.phData.direction { …
1
vote
0 answers

Animating a UIPopoverPresentationController view's center position

Overall my goal is to present a custom UIViewController over the screen as a sort of "widget". The view would animate by starting out with its center at a starting point in my root view and then move the view until it is positioned at the center of…
1
vote
1 answer

Popoverview is not centred on iPad rotation

In following code popover on iPad is not centred for second alert (cities) when iPad is rotated. It works fine for first alert (countries) though. I've printed the values and it's same for both alerts. It seems that despite having correct value for…
1
vote
0 answers

UIViewController modalPresentationStyle popover for iPad and custom for iPhone

I created a custom presentation using UIPresentationController but I only want to use this presentation for horizontally compact layout, and I want to replace my custom presentation with a popover for horizontally regular layout, and when the…
1
vote
1 answer

PopoverPresentationController not getting dismissed on touching outside

I have a PopoverPresentationController which shows from the button like below. I want to dismiss this popup on clicking outside popup. It should not dismiss on clicking inside popup. Below is my code. _popup = [self.storyboard…
Bhavesh
  • 1,422
  • 1
  • 12
  • 31
1
vote
1 answer

How to add popovers for every cell in view collection in Swift

I've writing an app (kind of game) with words. So, I have WordsVC with CollectionView (where every cell is a word). And when word (cell) is long tapped, I want to show popover with translation beside the cell. But I can't add segue to cell (Xcode…
1
vote
1 answer

Display an UIPopoverPresentationController from a UIControl?

I am writing a UIControl. I need to display a popover when the user touches an area of the control. But of course the usual code: [self presentViewController:self.popover animated:YES completion:nil]; does not work because we are in a UIControl,…
1
vote
1 answer

UIPopoverPresentationController doesn't disable tap gesture on title view

I have view controller with navigation bar containing title view which handles tap gesture. Also there is a rightBarButtonItem which shows UIAlertController on iPad as popover. Example code below: - (void)viewDidLoad { [super viewDidLoad]; …
1
vote
1 answer

Selected Tab index image act as inactive when UIPopoverPresentationController presented in iOS

I am having a design like below As you can see, I'm using UIPopoverPresentationController when user tap on the UITableViewCell vertical three dots image. Following is my code for displaying that pop over presentation view controller. -…
AnujAroshA
  • 4,623
  • 8
  • 56
  • 99
0
votes
0 answers

iOS listen for UIPopoverPresentationController close event

I have a share dialog in a popover window which I want to trigger a callback when closed. I've tried assigning a delegate to the UIPopoverPresentationController but none of the callbacks are being triggered when I close the share dialog in the…
0
votes
1 answer

Unable to navigate to a controller using the UIPopoverPresentationController _passthroughViews method in iOS using Objective C

Unable to navigate to a controller using the UIPopoverPresentationController _passthroughViews method in iOS using Objective C. I am trying to navigate to the controller view using the UIPopoverPresentationController's passthroughView. But I can't…
sejn
  • 2,040
  • 6
  • 28
  • 82
0
votes
0 answers

Presenting UIViewController as Popover has numerous issues, am I doing it wrong?

I am using C# Xamarin.iOS and working on an iOS application (designed for iPad only). I currently only have approximately 6 months of C#/Xamarin experience so apologies in advance. I am noticing various problems embedded in the default…
0
votes
0 answers

Present a Popover view from UIToolbar barButtonItem

Screenshot of the gap I need to present a popover view from a UIBarbuttonItem in a UIToolbar. But there exists a gap between the popover view and the toolbar. private func addToolbar() { let toolBar = UIToolbar(frame: CGRect(x: 0, y: 0, width:…