There is a weird issue for the iOS simulator to test iOS 7.1 and iOS 8.2 environment. When I try to get the screen size for iPhone 5s, the result is different. is this the bug in simulator? or is this the difference between iOS 7 and iOS 8?
Many thanks for any advice.
My code:
override func viewDidLoad() {
super.viewDidLoad()
println("Screen bounds: \(UIScreen.mainScreen().bounds)")
The iPhone 5s (8.2) simulator prints the result:
Screen bounds: (0.0,0.0,320.0,568.0)
The iPhone 5s (7.1) simulator prints the result:
Screen bounds: (0.0,0.0,320.0,480.0)
And there are top and bottom black bands to occupy the simulator iOS 7.1 screen.