有关屏幕适配

有关屏幕适配_第1张图片
各个


另外 要准备的启动图大小:

iPhone X : 1125 x 2436

iPhone XR:828px x 1792px

iPhone XS Max: 1242px x 2688px


判断X系列:

static inline BOOL isIPhoneXSeries() { 

BOOL iPhoneXSeries = NO; 

if (UIDevice.currentDevice.userInterfaceIdiom != UIUserInterfaceIdiomPhone) { 

return iPhoneXSeries; }

 if (@available(iOS 11.0, *)) {

 UIWindow *mainWindow = [[[UIApplication sharedApplication] delegate] window]; 

       iPhoneXSeries = YES; if (mainWindow.safeAreaInsets.bottom > 0.0) { 

    } 

  } 

return iPhoneXSeries;

 }

你可能感兴趣的:(有关屏幕适配)