In my Ipad application I use a popover but I'm not able to make it transparent. The popover has a tableview inside; my code is:
UIViewController* popoverContent = [[UIViewController alloc] init];
UIView* popoverView = [[UIView alloc] initWithFrame:CGRectMake(600, 800, 100, 100)];
popoverView.backgroundColor = [UIColor greenColor];
popoverContent.view = zoneViewController.view;
self.popoverController = [[UIPopoverController alloc] initWithContentViewController:popoverContent];
[self.popoverController presentPopoverFromRect:CGRectMake(1200, -200, 50, 375) inView:self.view permittedArrowDirections:UIPopoverArrowDirectionDown animated:TRUE];
[[[popoverController contentViewController] view] setAlpha:0.25f];
I'm able to make transparent only the tableview, but popover remains black...why??
[[[popoverController contentViewController] view] setAlpha:0.25f];
This modifies the transparency of zoneViewController's view, which will be nested inside the Popover. However, there's currently no way for you to customize the appearance of the Popover itself. You can control the size and arrow direction, but not the border color or border transparency of the Popover.
If you really want a transparent Popover frame, you'll have to write your own.