ios - [UIScreen mainScreen].bounds is changing its size at startup on iPhone 6 -
this question has answer here:
i put breakpoint in
int main(int argc, char *argv[]) { int retval = uiapplicationmain(argc, argv, nil, nil); and put break point in
- (bool)application:(uiapplication *)application didfinishlaunchingwithoptions:(nsdictionary *)launchoptions { i checked bounds twice , got different size.
(lldb) po [uiscreen mainscreen].bounds (origin = (x = 0, y = 0), size = (width = 375, height = 667)) (lldb) po [uiscreen mainscreen].bounds (origin = (x = 0, y = 0), size = (width = 568, height = 320)) what may change it? comparability mode iphone 5 ?
also graphics looks pixelated on iphone 6 on non retina screen. iphone 5 looks good.
it gl app , loads high res images.
something switches app in glitchy mode.
any ideas may force mode on iphone 6 in mode?
iphone 6 , iphone 5 both run same ios 10.2.1
the have designed view in ib or storyboard. first bounds represents bounds of view in storyboard. second on real device after reaching viewdidappear respect orientation.
Comments
Post a Comment