Subversion Repositories tpanel

Rev

Rev 483 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 483 Rev 484
Line 57... Line 57...
57
        case O_REVERSE_PORTRAIT:    value = UIInterfaceOrientationMaskPortraitUpsideDown; break;
57
        case O_REVERSE_PORTRAIT:    value = UIInterfaceOrientationMaskPortraitUpsideDown; break;
58
    }
58
    }
59
 
59
 
60
    NSArray *array = [[[UIApplication sharedApplication] connectedScenes] allObjects];
60
    NSArray *array = [[[UIApplication sharedApplication] connectedScenes] allObjects];
61
 
61
 
62
    if (!array)
62
    if (!array || array.count <= 0)
63
    {
63
    {
64
        MSG_ERROR("Error getting the array of screnes! Will not rotate.");
64
        MSG_ERROR("Error getting the array of scenes! Will not rotate.");
65
        return;
65
        return;
66
    }
66
    }
67
 
67
 
68
    UIWindowScene *scene = (UIWindowScene *)array[0];
68
    UIWindowScene *scene = (UIWindowScene *)array[0];
69
 
69