-
ns_available_ios (5_0)
This method can be used in iOS5.0 and later versions, and if this method is called in an older version than 5.0, it will cause a crash.
- ns_available (_mac, _ios)
- _mac means the version allowed on Mac
- _ios &nbs p; indicates IOS-supported version
-
ns_deprecated_ios (2_0, 6_0)
There are two version numbers in this macro. The previous version of iOS shows that this method was introduced, followed by an iOS version that indicates that it was discarded. Being discarded doesn't mean that this method doesn't exist, it just means that we should start thinking about migrating the relevant code to the new API.
-
ns_available (10_8, 6_0)
This macro tells us that this method was introduced with Mac OS 10.8 and iOS 6.0, respectively.
-
ns_deprecated (10_0, 10_6, 2_0, 4_0) are defined as follows: ns_deprecated (_macintro, _MACDEP, _ Iosintro, _IOSDEP, ...)
This method was introduced with Mac OS 10.0 and iOS 2.0 and was discarded after Mac OS 10.6 and iOS 4.0.
-
ns_class_available (10_11, 9_0)
This class is introduced separately with Mac OS 10.11 and iOS9.0.
-
ns_enum_available (10_11, 9_0)
This enumeration is introduced with Mac OS 10.11 and iOS9.0 respectively
-
__ tvos_prohibited
This method is forbidden on Mac
From the top, you can draw a rule: if the _ios, the two parameters after the parentheses, respectively: This method is introduced in iOS development and the version of the deprecated
If the _mac, the two arguments after the parentheses indicate: This method is introduced in MAC development and when the version is deprecated
If there are no markers, the order of the parameters, respectively, the Mac version number and the iOS version number
Reference Original: http://www.jianshu.com/p/55adac99377b
IOS-Knowledge of deprecated keywords in system methods ns_available and Ns_deprecated