Reputation: 3498
I write a simple universal app (Objective-C), and found when running on real device iPhone 6 Plus, in LLVM I view [UIScreen mainScreen].size
is:
(lldb) po [UIScreen mainScreen]
<UIScreen: 0x144502cd0; bounds = {{0, 0}, {375, 667}}; mode = <UIScreenMode: 0x170028f60; size = 1125.000000 x 2001.000000>>
but while using simulator, iPhone 6 Plus:
(lldb) po [UIScreen mainScreen]
<UIScreen: 0x7fd933008300; bounds = {{0, 0}, {414, 736}}; mode = <UIScreenMode: 0x7fd9333004e0; size = 1242.000000 x 2208.000000>>
Upvotes: 2
Views: 1863
Reputation: 9168
Check that the device isn't set to the zoomed resolution mode in Settings > Display & Brightness > View.
Setting the phone to a zoomed resolution will result in a different point size to be returned for the screen, which seems to be what you are experiencing.
Upvotes: 4