Changing the #ifdef to __IPHONE_OS_VERSION_MAX_ALLOWED