判断iOS设备的尺寸
来源:互联网 发布:centos 6.5网络配置ip 编辑:程序博客网 时间:2024/05/22 14:02
UIDevice + TL
#import <UIKit/UIKit.h>
typedef NS_ENUM(NSInteger, DeviceVerType){
DeviceVer4,
DeviceVer5,
DeviceVer6,
DeviceVer6P,
};
@interface UIDevice (TL)
+ (DeviceVerType)deviceVerType;
@end
#import "UIDevice+TL.h"
#define WIDTH_SCREEN [UIScreen mainScreen].bounds.size.width
#define HEIGHT_SCREEN [UIScreen mainScreen].bounds.size.height
@implementation UIDevice (TL)
+ (DeviceVerType)deviceVerType{
if (WIDTH_SCREEN == 375) {
return DeviceVer6;
}else if (WIDTH_SCREEN == 414){
return DeviceVer6P;
}else if(HEIGHT_SCREEN == 480){
return DeviceVer4;
}else if (HEIGHT_SCREEN == 568){
return DeviceVer5;
}
return DeviceVer4;
}
@end
0 0
- 判断iOS设备的尺寸
- iOS判断设备屏幕尺寸、分辨率
- IOS 判断设备屏幕尺寸、分辨率
- IOS 判断设备屏幕尺寸、分辨率
- iOS 设备的屏幕尺寸
- IOS —— 判断设备屏幕尺寸、分辨率
- iOS 设备的屏幕尺寸、分辨率
- iOS 设备的屏幕尺寸一览
- 所有iOS设备的屏幕尺寸
- iOS设备屏幕尺寸
- IOS 判断设备屏幕尺寸、分辨率 根据屏幕尺寸和分辨率
- ios-ios各种设备的尺寸和分辨率
- 判断iOS的设备型号
- 判断ios设备的型号
- IOS 图标尺寸以及设备尺寸详解
- iOS 设备画面尺寸/分辨率
- IOS 设备屏幕尺寸、分辨率
- iOS 苹果所有设备的系统、屏幕尺寸和像素
- LinearAlgebra_1
- LIVE555源码研究之MediaServer(转)
- LDP算子 用于人脸识别()得到特征向量用于识别)
- Spring data jpa高级查询,部分字段查询,过滤查询,空字符过滤
- leetcode 283--Move Zeroes
- 判断iOS设备的尺寸
- LeetCodeOJ.Longest Palindromic Substring
- dev(八):实战:使用udevadm修改usb优盘在/dev下的名字
- character_set_server
- JAVA JDBC 调用存储过程 传参数
- centos7 开机默认进入字符界面
- qt+zint实现打印一维条形码
- 一致性hash算法 - consistent hashing
- 字符串移位