Xcode, iOS, iPhone, iPad, Mac OS, Objective C, C, C++, Android, Java.
Thursday, 4 July 2013
Check if iOS current device is having retina display?
#pragma mark- Device Check=
+ (
BOOL
) isRetina
{
if
([[
UIScreen
mainScreen
]
respondsToSelector
:
@selector
(scale)])
return
[[
UIScreen
mainScreen
]
scale
] ==
2.0
?
YES
:
NO
;
return
NO
;
}
No comments:
Post a Comment
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment