문제

Is there a set (point) size for the UIScreen of a tv connected through AppleTV and Airplay mirroring?

Or will the screens of appletv be of different sizes depending on the actual tv device?

도움이 되었습니까?

해결책

Yes, the screens of appletv be of different sizes depending on the actual tv device.

If you want get the Sizes of the connected TV's from the Device , Follow these :

Notification Center

  NSNotificationCenter *center = [NSNotificationCenter defaultCenter];
        [center addObserver:self selector:@selector(handleScreenDidConnectNotification:) name:UIScreenDidConnectNotification object:nil];

Connected notification

 -(void)handleScreenDidConnectNotification : (NSNotification *)aNotification{
        UIScreen *newScreen = [aNotification object];
        CGRect screenBounds = newScreen.bounds;
        // screenBounds --> Get the size from it
    } 
라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top