Est [UIScreen écran principal].les limites.taille de devenir orientation-dépendante dans iOS8?

J'ai couru le code suivant dans les deux iOS 7 et 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);

Le résultat est le suivant à partir de iOS 8:

Currently landscape: No, width: 320.00, height: 568.00
Currently landscape: Yes, width: 568.00, height: 320.00

En comparant le résultat dans iOS 7:

Currently landscape: No, width: 320.00, height: 568.00
Currently landscape: Yes, width: 320.00, height: 568.00

Est-il de la documentation spécifiant ce changement? Ou est-ce un bug passager dans iOS 8 Api?

  • Bien le iOS8 sortie semble beaucoup plus logique
InformationsquelleAutor lwxted | 2014-06-10