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)
Written by Dominique d'Argent
Related protips
Have a fresh tip? Share with Coderwall community!
Post
Post a tip
Sponsored by #native_company# — Learn More
#native_title#
#native_desc#