UIDevice

作者: 乐乐的熊 | 来源:发表于2018-11-23 18:27 被阅读2次

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);
    }

相关文章

网友评论

      本文标题:UIDevice

      本文链接:https://www.haomeiwen.com/subject/ihkwfqtx.html