Xcode5 iOS7 - UIPopoverController Corner Radius

gngrwzrd picture gngrwzrd · Sep 18, 2013 · Viewed 8k times · Source

I'm transitioning an application to iOS 7 which has been fairly smooth, there's one thing I cannot figure out.

I have a view controller with a couple buttons that I display with a UIPopoverController.

It looks to me like the popover controller is doing something to clip the content of it's view controller to be rounded.

iOS6 (I want this):

enter image description here

iOS7 (something changed):

enter image description here

I'm using custom popover controller background class described here http://blog.teamtreehouse.com/customizing-the-design-of-uipopovercontroller

Here's my specific version of that background class http://pastebin.com/fuNjBqwU

Does anyone have any idea what to change to get it back to my iOS 6 look?

Answer

OneSman7 picture OneSman7 · Dec 12, 2013

In popover content controller:

- (void)viewWillAppear:(BOOL)animated
{
    [super viewWillAppear:animated];
    self.view.superview.layer.cornerRadius = 0;
}