Checking if code is running in Interface Builder Checking if code is running in Interface Builder ios ios

Checking if code is running in Interface Builder


From https://developer.apple.com/library/ios/recipes/xcode_help-IB_objects_media/Chapters/CreatingaLiveViewofaCustomObject.html:

You can use the preprocessor macro TARGET_INTERFACE_BUILDER to specify code for inclusion with or exclusion from your custom view class."