Skip to content

Instantly share code, notes, and snippets.

@elfenlaid
Last active December 14, 2015 13:28
Show Gist options
  • Save elfenlaid/5093866 to your computer and use it in GitHub Desktop.
Save elfenlaid/5093866 to your computer and use it in GitHub Desktop.
- (void)presentPicker
{
[Flurry logEvent:@"Picker presented"];
self.picker =
[[[MPMediaPickerController alloc]
initWithMediaTypes: MPMediaTypeAnyAudio] autorelease];
[picker setDelegate:self];
[picker setAllowsPickingMultipleItems:NO];
picker.prompt = @"Choose sound to process";
[self.delegate.navigationController pushViewController:self.picker animated:YES];
}
- (void)removePicker
{
[Flurry logEvent:@"Picker removed"];
[self.delegate.navigationController popViewControllerAnimated:NO];
self.picker = nil;
[Flurry logEvent:@"I'm pretty sure that picker just removed"];
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment