Closed Thomas101 closed 9 years ago
Hello, This issue seems related to #22 and to what's happening when presenting a UIActivityViewController in a system popover.
Would you mind giving a try to the following fix? It should prevent the recursive loop even in your case:
- (void)sizzled_setPreferredContentSize:(CGSize)aSize
{
[self sizzled_setPreferredContentSize:aSize];
if ([self isKindOfClass:[UINavigationController class]] == NO && self.navigationController != nil)
{
#ifdef WY_BASE_SDK_7_ENABLED
if ([self.navigationController isEmbedInPopover]) {
if ([self respondsToSelector:@selector(setPreferredContentSize:)]) {
[self.navigationController setPreferredContentSize:aSize];
}
}
#endif
}
}
Yeah, I agree with you. That seems to have fixed the issue on my end.
Thanks very much!
Thank you for having checked!
Hi,
I've found an incompatibility with the UIDocumentInteractionController in iOS8. If you include the WYPopoverController in your project then run this code...
The popover launches but now when you press the "More" button you end up in a recursive loop in the WYPopoverLibrary
As a pretty horrific fix I've done the following, but this is super brittle. It would be great to know what's actually up and get something in that's more re-usable