MPMediaPickerController is very slow on iPad ios7

I am trying to display MPMediaPickerController in popover on iOS7 + and it is very slow. It takes about 4 seconds from the first NSLog to the second NSLog. I tried to keep the collector, but it doesn't matter. Any ideas would be greatly appreciated.

- (void) showMediaPickerControllerWithArrowDirection:(UIPopoverArrowDirection)arrow_direction
{
    MPMediaPickerController *self.picker = [[MPMediaPickerController alloc] initWithMediaTypes: MPMediaTypeAnyAudio];

    self.picker.modalPresentationStyle = UIModalPresentationPopover;
    self.picker.delegate = self;
    self.picker.allowsPickingMultipleItems = YES;

    UIPopoverPresentationController *popPresenter = self.picker.popoverPresentationController;
    popPresenter.sourceView = self.view;
    popPresenter.sourceRect = self.view.bounds;
    popPresenter.permittedArrowDirections = arrow_direction;

    NSLog(@"____________________________  about to launch picker ");

    [self.viewController presentViewController:self.picker animated:YES completion:^{
        NSLog(@"____________________________  picker launched ");
    }];
}

      

+3
ios


source to share


No one has answered this question yet

Check out similar questions:

614
Why is there an extra padding added at the top of my UITableView with style UITableViewStyleGrouped in iOS7
309
IPhone Simulator suddenly started to run very slowly
7
MPMediaPickerController missing search function on iPad
6
Orienting MPMediaPickerController on iPad
4
MPMediaPickerController - iOS7
2
FaceBook Connect. Login to the system
1
MPMediaPickerController on iPad - bottom doesn't pick up touch events
1
Removing MKMapView annotations causes leak
1
configure mpmediapickercontroller
0
Changing views keeps giving me an attempt to represent vc1 to vc whose view is not in the window hierarchy



All Articles
Loading...
X
Show
Funny
Dev
Pics