iOS Writing Macro detect 3.5 inch or 4 inch display [duplicate]
This question already has an answer here: How to detect iPhone 5 (widescreen devices)? 24 answers I am trying to write a macro to determine the device is 3.5 inch or 4 inch. Some thing similar below. #define IOS_OLDER_THAN_6 ( [ [ [ UIDevice currentDevice ] systemVersion ] floatValue ] < 6.0 ) #define IOS_NEWER_OR_EQUAL_TO_6 ( [ [ [ UIDevice currentDevice ] systemVersion ] floatValue ] >= 6.0 ) Can someone help me. Please Nitin Gohel you can detect iphopne 3.5 inch or 4 inch using bellow:- #define isiPhone5 ([[UIScreen mainScreen] bounds].size.height == 568)?TRUE:FALSE you can check it using