by
2,736 12
1
6
263k
0
Top 1% !
Popular
Pearl of Wisdom
Tagged
Specified
OpenSource
Popularity: 4883rd place

Published on:

Languageobjectivec
LicenseMIT_X11
OSiOS
OSMac OS X

Mark methods as deprecated

Mark a method (or a whole class) as deprecated. Works in Xcode v4.2 and higher.
Copy Embed Code
<iframe id="embedFrame" style="width:600px; height:300px;"
src="https://www.snip2code.com/Embed/24191/Mark-methods-as-deprecated?startLine=0"></iframe>
Click on the embed code to copy it into your clipboard Width Height
Leave empty to retrieve all the content Start End
__attribute((deprecated("Use xxx: instead"))) examples: @interface MyClass : NSObject - (void)myOldMethod:(id)param __attribute__((deprecated)); @end __attribute__((deprecated)) @interface MyOldClass : NSObject @end __attribute__((deprecated)) void myOldFunction(...) { }
If you want to be updated about similar snippets, Sign in and follow our Channels

blog comments powered by Disqus