ios - iphone 6+ real device on landscape view is not working -
an user reported ios app on iphone 6+, landscape view not working.
i don't have real iphone 6+ test it, on simulator works fine. thoughts?
the problem was using #define code asking if device iphone6+, , code wasn't working expected. changed code this:
#define is_os_8_or_later ([[[uidevice currentdevice] systemversion] floatvalue] >= 8.0) #define screen_width ([[uiscreen mainscreen] bounds].size.width) #define screen_height ([[uiscreen mainscreen] bounds].size.height) #define screen_max_length (max(screen_width, screen_height)) #define is_iphone (ui_user_interface_idiom() == uiuserinterfaceidiomphone) #define is_iphone_6_plus (is_iphone && is_os_8_or_later && screen_max_length == 736.0)
Comments
Post a Comment