#if TARGET_OS_SIMULATOR
//Simulator
#else
// Device
#endif
Pls refer this previous SO question also What #defines are set up by Xcode when compiling for iPhone
More Related Contents:
- How measure distance between to objects using Camera in iPhone? [closed]
- How to read formatted string from a text file?
- iOS 6 apps – how to deal with iPhone 5 screen size? [duplicate]
- Pass data back to previous viewcontroller
- Syntax help – Variable as object name [duplicate]
- How to add a UIImage in MailComposer Sheet of MFMailComposeViewController
- Aligning text and image on UIButton with imageEdgeInsets and titleEdgeInsets
- iOS – Get CPU usage from application
- Center text vertically in a UITextView
- this class is not key value coding-compliant for the key view [duplicate]
- RootViewController animation transition, initial orientation is wrong
- Objective-C: Find numbers in string
- How do I upload a video to YouTube from within an iOS application? [closed]
- iPhone – Get Position of UIView within entire UIWindow
- Detecting if iOS app is run in debugger
- Blur specific part of an image (rectangular, circular)?
- Set ringtone in iPhone SDK [closed]
- How can I use NSError in my iPhone App?
- Last In-First Out Stack with GCD?
- How can I add a watermark in a captured video on iOS [duplicate]
- Implementing and Testing iOS data protection
- How to know whether app is terminated by user or iOS (after 10min background)
- Iframe Content Not Rendering Under Scroll In iOs5 iPad/iPhone
- Exception Types in iOS crash logs
- How do I submit an iOS app WITHOUT Xcode?
- Changing or Removing Developer Name in App Store
- Prevent scrolling in a MKMapView, also when zooming
- Select Multiple Images from Photo Library
- Encrypting SQLite Database file in iPhone OS
- Xcode project inside project