ope*_*rog 8 iphone xcode ios ios7
例如,iOS 7中有一个新类在iOS 6中不存在.我想使用这个新类.我的应用必须与iOS 6保持兼容.所以我在某些地方读到你现在可以这样做:
if ([NSURLSessionConfiguration class]) {
// only in iOS 7
} else {
// do it iOS6 way
}
Run Code Online (Sandbox Code Playgroud)
在任何iOS 6版本中都可以安全使用,还是应该使用NSClassFromString
?
归档时间: |
|
查看次数: |
610 次 |
最近记录: |