根据版本号区分调用

方法一:

#ifdef __IPHONE_9_2

  foo1

#else

foo2

#endif


#define HYKOSVersion()    [[[UIDevice currentDevice] systemVersion] floatValue]

判断对应版本号

推荐阅读更多精彩内容