浏览代码

fix simulator bug: downsampling is disabled by default on iPhone 6/6+/7/8 plus simulator

/main
xingwei.zhu 5 年前
当前提交
c9705971
共有 1 个文件被更改,包括 8 次插入8 次删除
  1. 16
      Runtime/Plugins/platform/ios/UIWidgetsDevice.mm

16
Runtime/Plugins/platform/ios/UIWidgetsDevice.mm


switch ((int)[[UIScreen mainScreen] nativeBounds].size.height) {
//iPhone 5 or 5S or 5C
case 1136:
_deviceName = @"iPhone 5";
_deviceName = @"iPhone 5 Simulator";
_deviceName = @"iPhone 6";
_deviceName = @"iPhone 6 Simulator";
_deviceName = @"iPhone 6 Plus";
_deviceName = @"iPhone 6 Plus Simulator";
_deviceName = @"iPhone 6 Plus";
_deviceName = @"iPhone 6 Plus Simulator";
_deviceName = @"iPhone X";
_deviceName = @"iPhone X Simulator";
_deviceName = @"iPhone XS Max";
_deviceName = @"iPhone XS Max Simulator";
_deviceName = @"iPhone XR";
_deviceName = @"iPhone XR Simulator";
_deviceName = @"Unknown";
_deviceName = @"Unknown Simulator";
break;
}
}

正在加载...
取消
保存