Skip to content

Crash when presenting an UIActivityViewController in popover on iPad #22

@Bluezen

Description

@Bluezen

Hello,
First of all, thanks for maintaining this project!

I encounter a crash when touching the "More" button of an UIActivityViewController presented in a system popover on iPad with iOS8.

ios simulator screen shot 1 nov 2014 15 13 33

Crash happens in WYPopoverController.m file:
crash

You can reproduce the crash by using my modified version of the demo project (I simply added a toolbar with a button to present a UIActivityViewController 4f2e755) on my fork:
https://github.com/Bluezen/WYPopoverController/tree/demoCrash
You have to run the demo project on an iPad (real device or simulator) with iOS8, touch the button on the toolbar then touch the "More" button.

I still can't figure out why there is a EXC_BAD_ACCESS here so I'm using a "ghetto fix" for the moment:

if ([self isKindOfClass:[UINavigationController class]] == NO && self.navigationController != nil && [self respondsToSelector:@selector(popoverPresentationController)] == NO)
    {

but this doesn't solve the underlying problem and is just one ugly way to work around it.

I hope someone investigation will prove better than mine.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions