Last Updated: February 25, 2016
·
470
· nubbel

NSClassExists makro

The following makro checks if a class exists, which can become particularly useful when working with weak linked libraries:

#define NSClassExists(class) (NSClassFromString(@#class) != nil)