Mark Bridges
Mark Bridges

Reputation: 8458

Mark a class in Objective-C as deprecated at a particular iOS version and include a message

How do I mark a class in Objective-C as deprecated at a particular iOS version and include a message?

I've seen that there's NS_DEPRECATED_IOS(2_0, 11_0) but I can figure out where to put it to use it on a class and how to add a message to it that will be output as a warning if someone tries to use it.

Upvotes: 3

Views: 1940

Answers (1)

Mark Bridges
Mark Bridges

Reputation: 8458

Found it:

NS_CLASS_DEPRECATED_IOS(4_0, 11_0, "Stop using this class")

Upvotes: 4

Related Questions