Cocoa Things
Objective C, Cocoa, Cocoa Touch, iOS, Mac OS X
Tuesday, March 5, 2013
How to check if app is run under iPhone 5 (the one with 4" screen)?
Sometimes you need to check if app is run under iPhone 5 which has higher screen resolution than previous models. This code should be helpful:
- (
BOOL
)isIPhone5
{
return
[[
UIScreen
mainScreen
]
bounds
].
size
.
height
==
568
;
}
No comments:
Post a Comment
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment