I have a modal view popping up in my iPad app and for some reason it has white, rounded corners.
It might be worth noting I built this model view in my storyboard, n
I'm my case the white stuff are hidden in the drop shadow's view at layer background color. Solved by changing the background to clear color:
//Monotouch code
View.Superview.Layer.BackgroundColor = UIColor.Red.CGColor;
If it's doesn't get rid of the white corner keep searching, remember to check out some properties of the View, SuperView and BackgroundViews:
Note: DropShadow is visible as View's SuperView at ViewWillApper
That's weird. Try self.view.layer.masksToBounds = YES;
too if that works. You'll probably lose your view's shadows though.
Come to think of it, that white thing probably comes from the view below your navigation bar.
In order to make the modal view transparent and make the transparency happen before the view appeared was to move self.view.superview.backgroundColor = [UIColor clearColor] from viewDidAppear to the following:
(void)viewWillLayoutSubviews{ [super viewWillLayoutSubviews];
self.view.superview.backgroundColor = [UIColor clearColor]; }