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