【发布时间】:2011-10-01 10:15:22
【问题描述】:
我如何执行运行时检查以查看我是否可以使用 UIGraphicsBeginImageContextWithOptions,它仅从 iOS 4 开始可用。
我知道我可以查看[[UIDevice currentDevice] systemVersion],但Apple 建议使用NSClassFromString() 或respondsToSelector: 之类的内容。 C 函数有 respondsToSelector: 吗?
【问题讨论】:
标签: iphone objective-c cocoa-touch respondstoselector