I think using `#if (CC_TARGET_PLATFORM == CC_PLATFORM_IOS)` is better.