Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

availableModes #23

Open
craig171171 opened this issue Mar 5, 2016 · 3 comments
Open

availableModes #23

craig171171 opened this issue Mar 5, 2016 · 3 comments

Comments

@craig171171
Copy link

get this error when running

  • (void)prepareScreen
    {
    @Try
    {
    if ([[UIScreen screens] count] > 1 && nativeTVOUT) {

        // Internal display is 0, external is 1.
        externalScreen = [[[UIScreen screens] objectAtIndex:1] retain];         
        screenModes =  [[externalScreen **availableModes**] retain];
    
        // Allow user to choose from available screen-modes (pixel-sizes).
        /*
        UIAlertView *alert = [[[UIAlertView alloc] initWithTitle:@"External Display Detected!"
                                                         message:@"Choose a size for the external display." 
                                                        delegate:self 
                                               cancelButtonTitle:nil 
                                               otherButtonTitles:nil] autorelease];
        */
        NSObject *alert;
    

screen shot 2016-03-05 at 10 03 06

@craig171171
Copy link
Author

Sorted it

Cheers

@jonygaucho
Copy link

Hey, craig171171, how did you solve it? same issue here...thanks.

@craig171171
Copy link
Author

Hi

Just take out that line with // in front of it

So it will be

// screenModes = .........

Hope this sorts

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants