How to define preprocessor macro to check iOS version

前端 未结 6 1679
情书的邮戳
情书的邮戳 2021-01-02 20:47

I use it to check iOS version, but it doesn\'t work:

#ifndef kCFCoreFoundationVersionNumber_iPhoneOS_5_0
#define kCFCoreFoundationVersionNumber_iPhoneOS_5_0          


        
6条回答
  •  北荒
    北荒 (楼主)
    2021-01-02 21:19

    #ifdef __IPHONE_5_0 
    

    etc

    Just look for that constant. All the objective c constants start with two underscores

提交回复
热议问题