Skip to content

UIPopoverBackgroundView

Screen Shot 2013-09-25 at 12.08.28 PMI found my popover’s going to iOS 7 didn’t look so great. I searched around and posts were pointing to subclassing the abstract UIPopoverBackgroundView class.

I found GIKPopoverBackgroundView and the demo app for it looked good.

It was fairly easy to use –

  1. Copy GIKPopoverBackgroundView.h/.m into my project
  2. Copy the images from the images folder into my project
  3. Import the GIKPopoverBackgroundView.h into the class I want to use it in.
  4. Set the background view class on my UIPopoverController (below)

 

myPOController.popoverBackgroundViewClass = [GIKPopoverBackgroundView class];