Questions tagged [uipopoverbackgroundview]

The UIPopoverBackgroundView class provides the background appearance for a popover.

The UIPopoverBackgroundView is abstract and must be subclassed before it can be used. The implementation of your subclass is responsible for providing the border decoration and arrow for the popover.

Subclasses must also override all declared properties and methods to provide information about where to lay out the corresponding popover content and arrow.

Source: UIPopoverBackgroundView Class Reference.

19 questions
35
votes
5 answers

Change UIPopoverView background + arrow color

Is there a way to simply change the UIPopoverView background color (including its arrow) on iOS8? (I did read a couple of articles on customizing "UIPopoverControllers". Does this apply here too, meaning the answer is "no"?) Isn't this something I…
Bernd
  • 11,133
  • 11
  • 65
  • 98
12
votes
2 answers

Using UIPopoverBackgroundView class

Apple is missing documentation on how to use UIPopoverBackgroundView class introduced in iOS5. Anyone have an example? I have tried to subclass it, but my XCode 4.2 on Lion is missing UIPopoverBackgroundView.h Edit: Unsurprisingly, it should have…
Andrew Kolesnikov
  • 1,920
  • 1
  • 14
  • 20
10
votes
1 answer

UIPopoverBackgroundView contentViewInsets must be implemented by subclassers

I'm implementing a custom PopoverBackgroundView, and as specified at Swift documentation I gotta implement the methods as follow: class SettingsPopoverBackgroundView: UIPopoverBackgroundView { override var arrowOffset: CGFloat { get { …
andriosr
  • 481
  • 4
  • 12
7
votes
3 answers

UIPopoverBackgroundView without rounded corners

I am making a custom popover background by subclassing UIPopoverBackgroundView. I want to make popover without rounded corners. I can successfully create background without rounded corners (red in picture), but it seems that UIPopoverController adds…
sash
  • 8,423
  • 5
  • 63
  • 74
6
votes
3 answers

UIPopoverController backgroundColor causing flash when shown

I'm using the new (in iOS 7) UIPopoverController.backgroundColor setting in my app to change the color of my popovers as needed, but I'm finding that using this setting is causing a "flash" of color change whenever I open my popovers -- in about…
Mark
  • 73
  • 1
  • 5
5
votes
2 answers

How to add dimmed background to a custom UIPopoverBackgroundView

I am making custom popover by subclassing UIPopoverBackgroundView (using this tutorial) and presenting it by using UIPopoverController. Unfortunately as soon as I specify custom popoverBackgroundViewClass the native dimmed background disappears. Is…
sash
  • 8,423
  • 5
  • 63
  • 74
3
votes
1 answer

How to change UIPopoverPresentationController's arrow color without drawing my own

I want to change the color of the arrow that UIPopoverPresentationController uses to point at its source. The only way I can see to do this is to subclass UIPopoverBackgroundView and write drawRect and draw the popover border and arrow myself.…
Tom Hamming
  • 10,577
  • 11
  • 71
  • 145
3
votes
0 answers

UIPopoverView arrow iOS7 blur

I'm attempting to implement the blur effect from the toolbars in iOS7 in a popover using a UIPopoverBackgroundView subclass. The actual view basically just has a navigation bar that fills the view and that's working fine, but I haven't found a way…
GetSwifty
  • 7,568
  • 1
  • 29
  • 46
2
votes
1 answer

PopoverBackroundViewClass property of UIPopoverController is missing

I am using latest Monotouch 5.2.4. As part of my development, I am trying to change the background border of the Popover controller. As per apple documentation, this can be managed using a custom class inherited from UIPopoverBackgroundView…
2
votes
0 answers

Remove dim from UIPopoverPresentationController

I've set its popoverBackgroundViewClass to a custom UIPopoverBackgroundView, and there I do: override init(frame: CGRect) { super.init(frame: frame) backgroundColor = UIColor.clear // more stuff here } But the popover keeps showing a…
AppsDev
  • 12,319
  • 23
  • 93
  • 186
2
votes
1 answer

Error: [UIPopoverBackgroundView setArrowOffset:] must be implemented by subclassers

I follow this post to implement a UIPopoverBackgroundView. I checked the UIPopoverBackgroundView class, I think I have implemented all required functions and variables, but the error still persist when running . Terminating app due to uncaught…
ilovecomputer
  • 4,238
  • 1
  • 20
  • 33
2
votes
1 answer

UIPopoverBackgroundView border shrink

I have subclassed and am using UIPopoverBackgroundView in order to make custom appearances for my UIPopoverControllers. Everything seems to work great so far, the popover draws well and looks the way I expect it. The issue is that, when my popover…
Doc
  • 1,480
  • 2
  • 16
  • 28
1
vote
0 answers

Changing the popovercontroller background colour of UITabBarController

I am calling a UITabBarController and displaying it as a popover, however when the popover is displayed, at each corner there is a little white edge (the views within have a coloured background). In any other UIPopoverController I would set the…
1
vote
2 answers

UISplitViewController consistent divider

In my iPad App I'm using a UISplitViewController with two UINavigationControllers as master and detail. In Potrait I'd like the master to be hidden and accessible via UIPopoverViewController. This is the implementation of my UISplitViewController…
dlinsin
  • 19,249
  • 13
  • 42
  • 53
1
vote
3 answers

UIPopoverViewController in ios7?

In iOS 6 UIPopoverView have border with black translucent colour but iOS 7 do not have border because iOS 7 become transparent. how to add border with black translucent colour in iOS 7. Can anyone know please help me to solve this problem?
jeyachandran
  • 325
  • 4
  • 12
1
2