3
votes

I'm trying to implement popover like that: Custom PopOver

I've spent quite a lot of time trying to customize UIPopoverController and UIPopoverBackgroundView. As I understand my task is impossible with public API for popovers. It is possible:

  1. To use small image with fixed corners and stretchable center, in that case I'll have stretched stripes on the side. And also I'll have image "under" the arrow.
  2. Fill border with stripes, but in that case I don't have rounded corners. I also have annoying inner shadow inside: enter image description here

    backgroundImageView.backgroundColor = [UIColor colorWithPatternImage:[UIImage imageNamed:@"airmail_pattern"]];

Is there any other way to reuse standard popover or I have to implement that behavior using just UIViewController?

Cheers.

1

1 Answers

0
votes

WEPopover seems to do what you want to do. It has custom background property, which I guess could be used for this purpose. (I haven't used this yet)

https://github.com/werner77/WEPopover