Reputation: 195
Is there any way to programmatically figure out if a certain framework (say, CoreLocation) is added to the project? Thanks!
Upvotes: 1
Views: 53
Reputation: 20236
NSClassFromString
is your friend. Look for a class in those libraries. If you get back Nil
, then you don't have it linked. Otherwise, it is.
Upvotes: 2