【发布时间】:2012-11-03 00:44:20
【问题描述】:
“使用基于 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.
【问题讨论】: