另外 要准备的启动图大小:
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;
}
网友评论