YJUtilsUserInterfaceIdiom
来源:互联网 发布:dsp算法工程师 编辑:程序博客网 时间:2024/06/14 22:20
//// YJUtilsUserInterfaceIdiom.swift// Utils//// CSDN:http://blog.csdn.net/y550918116j// GitHub:https://github.com/937447974/Blog//// Created by yangjun on 16/1/14.// Copyright © 2016年 阳君. All rights reserved.//import UIKit/// user interfacepublic struct YJUtilsUserInterfaceIdiom { /// The user interface should be designed for iPhone and iPod touch. static let isPhone = UIDevice.currentDevice().userInterfaceIdiom == UIUserInterfaceIdiom.Phone /// The user interface should be designed for iPad. static let isPad = UIDevice.currentDevice().userInterfaceIdiom == UIUserInterfaceIdiom.Pad /// The user interface should be designed for Apple TV. static let isAppleTV = UIDevice.currentDevice().userInterfaceIdiom == UIUserInterfaceIdiom.TV}
Appendix
Sample Code
Swift
Revision History
Copyright
CSDN:http://blog.csdn.net/y550918116j
GitHub:https://github.com/937447974/Blog
0 0
- YJUtilsUserInterfaceIdiom
- java request和response的区别
- YJUtilsDeviceType
- YJUtilsAPP
- iOS动画和特效(四)controller间的自定义过渡效果
- 从Spark架构中透视job
- YJUtilsUserInterfaceIdiom
- MongoDB模型
- uvaoj10474---详解细节(二分法)注意!
- poj2253——Frogger(最小生成树,prim算法)
- linux服务器安全配置实例(三)用户账户权限配置
- tomcat数据库连接池配置
- Vim 启动错误Caught deadly signal SEGV
- java.lang.OutOfMemoryError: Java heap space 解决方法
- linux 信号 中断的系统调用