18
iOS8에서 [UIScreen mainScreen] .bounds.size가 방향에 따라 달라 집니까?
iOS 7과 iOS 8에서 다음 코드를 실행했습니다. UIInterfaceOrientation orientation = [[UIApplication sharedApplication] statusBarOrientation]; BOOL landscape = (orientation == UIInterfaceOrientationLandscapeLeft || orientation == UIInterfaceOrientationLandscapeRight); NSLog(@"Currently landscape: %@, width: %.2f, height: %.2f", (landscape ? @"Yes" : @"No"), [[UIScreen mainScreen] bounds].size.width, [[UIScreen mainScreen] bounds].size.height); 다음은 iOS 8의 결과입니다. Currently landscape: No, width: 320.00, …