码迷,mamicode.com
首页 > 其他好文 > 详细

系统版本判断

时间:2014-10-01 19:09:51      阅读:119      评论:0      收藏:0      [点我收藏+]

标签:http   io   os   ar   sp   c   on   html   r   

 

 

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
}

系统版本判断

标签:http   io   os   ar   sp   c   on   html   r   

原文地址:http://www.cnblogs.com/spiderdzl/p/4003382.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!