Julie
Julie

Reputation: 195

Detect which frameworks are added to project?

Is there any way to programmatically figure out if a certain framework (say, CoreLocation) is added to the project? Thanks!

Upvotes: 1

Views: 53

Answers (1)

jer
jer

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

Related Questions