zoukankan
html css js c++ java
iOS 开发中区分当前iPhone或iPad设备
在ios开发的过程中,有可能这里应用在iphone和ipad上都要使用,但是怎么判断当前设备是iphone还是ipad呢,在这里提供一种方法来判断这个设备是什么设备,具体代码如下
if ([[UIDevice currentDevice] userInterfaceIdiom] == UIUserInterfaceIdiomPhone) {
//当前设备是iPhone
} else {
//当前设备是iPad
}
查看全文
相关阅读:
装饰
统一软件开发过程之2:用例文本书写
统一软件开发过程之1:创建领域模型
工厂方法
volatile
中介者
建造者
C#委托,事件与回调函数
控件资源嵌入
装饰
原文地址:https://www.cnblogs.com/chenjie-ios/p/4724158.html
最新文章
[CareerCup][Google Interview] Find kth number in a BST
[LeetCode] Length of Last Word
[LeetCode] Letter Combinations of a Phone Number
[CareerCup][Google Interview] Given two arrays A & B of length l
[LeetCode] Longest Palindromic Substring
[LeetCode] Longest Substring Without Repeating Characters
异常情况监控系统的设计随想
浅谈设计的原则(整理)
合成
观察者模式
热门文章
Ajax实战
params、ref及out(C#)
Web设计模式
Ajax
代理
ExecuteNonQuery备注
策略模式
sql2005表结构查询
单件模式
设计模式之我见
Copyright © 2011-2022 走看看