1 YYKIt+UIDevice的方法
NSString *platformstr = [[UIDevice currentDevice] machineModelName];
if ([platformstr isEqualToString:@"iPhone XR"]||
[platformstr isEqualToString:@"iPhone XS Max"]||
[platformstr isEqualToString:@"iPhone XS"]||
[platformstr isEqualToString:@"iPhone X"]) {
buyButton.frame = CGRectMake(0, KScreenH-50, KScreenW, 50);
}
网友评论