系统版本判断

 

 

As suggested by the official Apple docs: you can use the NSFoundationVersionNumber, from the NSObjCRuntime.h header file.

if (floor(NSFoundationVersionNumber) > NSFoundationVersionNumber_iOS_6_1) {
    // here you go with iOS 7
}
posted @ 2014-10-01 17:04  dzldzl  阅读(135)  评论(0)    收藏  举报