Last active
December 14, 2015 13:28
-
-
Save elfenlaid/5093866 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
- (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