Skip to content

Instantly share code, notes, and snippets.

### Keybase proof
I hereby claim:
* I am bornbnid on github.
* I am bornbnid (https://keybase.io/bornbnid) on keybase.
* I have a public key ASAigHSuY3sGWJ8G1HhSpR6Zr_hHLtJVKvJkSpsC5RoomQo
To claim this, I am signing this object:
@bornbnid
bornbnid / iPadImageSelection
Created September 25, 2013 20:39
Snippets for code to select image using a UIPopoverController in an iPad app. *Note: you should implement UIActionSheetDelegate and UIImagePickerControllerDelegate
#pragma mark - UIAction sheet handling for image options
- (IBAction)imageButtonPressed:(id)sender{
UIActionSheet *screenshotOptions = [[UIActionSheet alloc] initWithTitle:@"Image Source"
delegate:self
cancelButtonTitle:@"Cancel"
destructiveButtonTitle:nil
otherButtonTitles:@"Camera", @"Photo Library", nil];
[screenshotOptions showFromRect:self.imageButton.frame inView:self.imageButton.superview animated:YES];
}