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:
[email protected]


With regards,
Apache Git Services

Reply via email to