I am using the UIPopoverController for a popup on an iOS7 iPad as follows:
if (!self.popover) { UIViewController *popupVC = [[UIViewController alloc] init]; [popupVC.view addSubview:thePopupView]; popupVC.preferredContentSize = CGSizeMake(240, 140); self.popover = [[UIPopoverController alloc] initWithContentViewController:popupVC]; self.popover.delegate = self; } [self.popover presentPopoverFromBarButtonItem:barButton permittedArrowDirections:UIPopoverArrowDirectionAny animated:YES];
But when the popover is active, it makes the screen darker , while this effect does not affect other views in iOS6.
How to overcome this problem? Thanks!
ios ios7 uipopovercontroller
LE SANG
source share