0

Basically I was forced to check if the iOS version of the device is 8.0 and if it is an iPad to run the following code:

ActivityView.popoverPresentationController.sourceView = view;
ActivityView.popoverPresentationController.sourceRect = CGRectMake(0, 50, 1, 1);

Otherwise the application crashes.

The problem now is it crashes in iPad Mini.

3

1 Answer 1

0

Basically, instead of checking for iOS 8 and iPad, I should check if the activityView responds to the selector popoverPresentationController.

[ActivityView respondsToSelector:@selector(popoverPresentationController)] ) {
    ActivityView.popoverPresentationController.sourceView = view;
    ActivityView.popoverPresentationController.sourceRect = CGRectMake(0, 50, 1, 1);
}

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.