This question is geared for iOS version compatibility.
I know how to check if a function exists if it is a typical Objective-C style method using respondsToSelector. i.e. For a method such as:
- (void) someMethod:(NSInteger)someParameter;
You can use:
if ([self respondsToSelector:@selector(someMethod:someParameter)]) {
//do something
}
But what about C-style functions? How can I check if a function exists that looks like:
void CStyleFunctionName(FoundationTypeRef parameter);
Thanks!