My cognizance on bits and bytes
Wednesday, February 22, 2017
To find if current device is iPhone 4 or 4S
iPhone 4 and 4S have shorter screens, so we need to adjust the UI height in many cases. This macro makes it easier :
#define
IS_IPHONE5
(([[
UIScreen
mainScreen
]
bounds
].
size
.
height
-
568
)?
NO
:
YES
)
No comments:
Post a Comment
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment