You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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
- (void)sizzled_setPreferredContentSize:(CGSize)aSize
{
[selfsizzled_setPreferredContentSize:aSize];
if ([selfisKindOfClass:[UINavigationController class]] == NO && self.navigationController != nil)
{
#ifdef WY_BASE_SDK_7_ENABLED
if ([selfrespondsToSelector:@selector(setPreferredContentSize:)]) {
[self.navigationController setPreferredContentSize:aSize];
}
#endif
}
}
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
- (void)sizzled_setPreferredContentSize:(CGSize)aSize
{
[selfsizzled_setPreferredContentSize:aSize];
if ([selfisKindOfClass:[UINavigationController class]] == NO && self.navigationController != nil)
{
#ifdef WY_BASE_SDK_7_ENABLED
if ([NSStringFromClass([selfclass]) hasPrefix:@"_UIActivityUserDefaultsViewController"] == NO) {
if ([selfrespondsToSelector:@selector(setPreferredContentSize:)]) {
[self.navigationController setPreferredContentSize:aSize];
}
}
#endif
}
}
The text was updated successfully, but these errors were encountered:
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
The text was updated successfully, but these errors were encountered: