The iOS framework that grows only as fast as its documentation
SDK Availability

Macros

#define NIIOS_2_0   20000
 
#define NIIOS_2_1   20100
 
#define NIIOS_2_2   20200
 
#define NIIOS_3_0   30000
 
#define NIIOS_3_1   30100
 
#define NIIOS_3_2   30200
 
#define NIIOS_4_0   40000
 
#define NIIOS_4_1   40100
 
#define NIIOS_4_2   40200
 
#define NIIOS_4_3   40300
 
#define NIIOS_5_0   50000
 
#define NIIOS_5_1   50100
 
#define NIIOS_6_0   60000
 
#define NIIOS_6_1   60100
 
#define NIIOS_7_0   70000
 

Functions

BOOL NIIsPad (void)
 
BOOL NIIsPhone (void)
 
BOOL NIIsTintColorGloballySupported (void)
 
BOOL NIDeviceOSVersionIsAtLeast (double versionNumber)
 
CGFloat NIScreenScale (void)
 
BOOL NIIsRetina (void)
 
Class NIUIPopoverControllerClass (void)
 
Class NIUITapGestureRecognizerClass (void)
 

Overview

For checking SDK feature availibility.

NIIOS macros are defined in parallel to their __IPHONE_ counterparts as a consistently-defined means of checking __IPHONE_OS_VERSION_MAX_ALLOWED.

For example:

    #if __IPHONE_OS_VERSION_MAX_ALLOWED >= NIIOS_3_2
      // This code will only compile on versions >= iOS 3.2
    #endif

Macro Definition Documentation

NIIOS_2_0   20000

Released on July 11, 2008.

#define NIIOS_2_0;

NIIOS_2_1   20100

Released on September 9, 2008.

#define NIIOS_2_1;

NIIOS_2_2   20200

Released on November 21, 2008.

#define NIIOS_2_2;

NIIOS_3_0   30000

Released on June 17, 2009.

#define NIIOS_3_0;

NIIOS_3_1   30100

Released on September 9, 2009.

#define NIIOS_3_1;

NIIOS_3_2   30200

Released on April 3, 2010.

#define NIIOS_3_2;

NIIOS_4_0   40000

Released on June 21, 2010.

#define NIIOS_4_0;

NIIOS_4_1   40100

Released on September 8, 2010.

#define NIIOS_4_1;

NIIOS_4_2   40200

Released on November 22, 2010.

#define NIIOS_4_2;

NIIOS_4_3   40300

Released on March 9, 2011.

#define NIIOS_4_3;

NIIOS_5_0   50000

Released on October 12, 2011.

#define NIIOS_5_0;

NIIOS_5_1   50100

Released on March 7, 2012.

#define NIIOS_5_1;

NIIOS_6_0   60000

Released on September 19, 2012.

#define NIIOS_6_0;

NIIOS_6_1   60100

Released on January 28, 2013.

#define NIIOS_6_1;

NIIOS_7_0   70000

Released on September 18, 2013.

#define NIIOS_7_0;

Function Documentation

NIIsPad

Checks whether the device the app is currently running on is an iPad or not.

BOOL NIIsPad:;
Discussion
Returns
YES if the device is an iPad.

NIIsPhone

Checks whether the device the app is currently running on is an iPhone/iPod touch or not.

BOOL NIIsPhone:;
Discussion
Returns
YES if the device is an iPhone or iPod touch.

NIIsTintColorGloballySupported

Checks whether the device supports tint colors on all UIViews.

BOOL NIIsTintColorGloballySupported:;
Discussion
Returns
YES if all UIView instances on the device respond to tintColor.

NIDeviceOSVersionIsAtLeast

Checks whether the device's OS version is at least the given version number.

BOOL NIDeviceOSVersionIsAtLeast:(double)versionNumber;
Discussion

Useful for runtime checks of the device's version number.

Parameters
versionNumberAny value of kCFCoreFoundationVersionNumber.
Attention
Apple recommends using respondsToSelector where possible to check for feature support. Use this method as a last resort.

NIScreenScale

Fetch the screen's scale.

CGFloat NIScreenScale:;

NIIsRetina

Returns YES if the screen is a retina display, NO otherwise.

BOOL NIIsRetina:;

NIUIPopoverControllerClass

This method is now deprecated.

Class NIUIPopoverControllerClass:;
Discussion

Use [UIPopoverController class] instead.

MAINTENANCE: Remove by Feb 28, 2014.

NIUITapGestureRecognizerClass

This method is now deprecated.

Class NIUITapGestureRecognizerClass:;
Discussion

Use [UITapGestureRecognizer class] instead.

MAINTENANCE: Remove by Feb 28, 2014.