What you are seeing there is the build in UIPopoverController. To make this effect on an iPad (it only works on iPads), simply take your view controller, and embed it in a UIPopoverController like so:
- (void)showViewControllerInPopover:(UIViewController *)viewController {
self.popover = [[UIPopoverController alloc] initWithContentViewController:viewController];
[self.popover presentPopoverFromBarButtonItem:self.barButton permittedArrowDirections:UIPopoverArrowDirectionAny animated:YES];
}
Simply put whatever content you want in a custom view controller, and call the above method. Make sure to set the background of your view controller's view to clear.
Some Important Notes:
- You will need to keep a reference to the popover controller. A property is usually the easiest way.
- You can present from a UIBarButtonItem or a CGRect; whatever makes sense for your application.