Skip to content

Instantly share code, notes, and snippets.

@Azuritul
Created August 2, 2011 11:39
Show Gist options
  • Save Azuritul/1120035 to your computer and use it in GitHub Desktop.
Save Azuritul/1120035 to your computer and use it in GitHub Desktop.
Using UIPopoverController
/* Using popover to present service list */
UIPopoverController * popover = [[UIPopoverController alloc] initWithContentViewController:aController];
popover.popoverContentSize = CGSizeMake(320.0, 400.0);
popover.delegate = self;
[aController release];
[popover presentPopoverFromBarButtonItem:sender permittedArrowDirections:UIPopoverArrowDirectionAny animated:YES];
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment