আমি 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);
নিম্নলিখিত আইওএস 8 এর ফলাফল:
Currently landscape: No, width: 320.00, height: 568.00
Currently landscape: Yes, width: 568.00, height: 320.00
আইওএস 7 এর ফলাফলের সাথে তুলনা করা:
Currently landscape: No, width: 320.00, height: 568.00
Currently landscape: Yes, width: 320.00, height: 568.00
এই পরিবর্তন উল্লেখ করে কোন ডকুমেন্টেশন আছে? বা এটি আইওএস 8 এপিআই-তে একটি অস্থায়ী বাগ?