How can I perform a run-time check to see if I can use UIGraphicsBeginImageContextWithOptions
, which is only available starting with iOS 4.
I know I could check [[UIDevice currentDevice] systemVersion]
, but Apple recommends using things like NSClassFromString()
or respondsToSelector:
. Is there a respondsToSelector:
for C functions?