You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@weex.apache.org by GitBox <gi...@apache.org> on 2020/02/07 10:06:25 UTC

[GitHub] [incubator-weex] wqyfavor commented on a change in pull request #3132: [iOS] adapt for iPad device

wqyfavor commented on a change in pull request #3132: [iOS] adapt for iPad device
URL: https://github.com/apache/incubator-weex/pull/3132#discussion_r376309516
 
 

 ##########
 File path: ios/sdk/WeexSDK/Sources/Utility/WXUtility.m
 ##########
 @@ -824,6 +824,10 @@ + (CGFloat)defaultPixelScaleFactor
     return defaultScaleFactor;
 }
 
++ (BOOL)deviceIsiPad {
+    return [[[UIDevice currentDevice] model] isEqualToString:@"iPad"];
 
 Review comment:
   判断ipad有更好的方法,不要字符串比较。

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services