Last Updated: February 25, 2016
·
486
· 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)