“<strong>使用基于 SDK 的开发”解释了如何使用弱链接的类、方法和函数......
我用过这个,例如
if ([NSByteCountFormatter class]) {
...
}
有什么方法可以检测支持的选项,例如
NSRegularExpressionSearch
The search string is treated as an ICU-compatible regular expression.
If set, no other options can apply except NSCaseInsensitiveSearch and NSAnchoredSearch.
You can use this option only with the rangeOfString:... methods and stringByReplacingOccurrencesOfString:withString:options:range:.
Available in OS X v10.7 and later.