Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP

Loading…

Universal app crashes when deployed on iPhone with iOS 3.x #15

Open
ahndee opened this Issue · 2 comments

2 participants

@ahndee

Trying to create an universal application with MGSplitViewController will crash upon start on an iPhone running iOS 3.x with the message

Symbol not found: _OBJC_CLASS_$_UIPopoverController

The issue can be resolved by replacing

_hiddenPopoverController = [[UIPopoverController alloc] initWithContentViewController:self.masterViewController];

with

_hiddenPopoverController = [[NSClassFromString(@"UIPopoverController") alloc] initWithContentViewController:self.masterViewController];

in MGSplitViewController.m

@liamlynass

Or use weak linking...

@ahndee

I'd rather not do that - quoting Apple employee "big3" from https://devforums.apple.com/message/244624#244624:

FYI: Weak linking a framework with as many symbols as UIKit will probably cause an appreciable increase in your app's startup time. It's best avoided if possible.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.