"deprecated" 在 iOS 中的真正含义是什么
What does "deprecated" really mean in iOS
在 iOS 开发中,可以使用已弃用的方法,直到 "removed"。
我知道不建议使用已弃用的方法,但这是否意味着它们可能无法正常工作或可能导致致命问题?
What are deprecated methods:
Deprecated methods or classes that are outdated one which will eventually be removed.
Apple 弃用了一些方法/ 类,当他们引入更好的替代品时,通常是因为他们想利用新硬件,OS 或语言功能(例如块)大约在构思原始方法的时候。
When a deprecated method will be removed:
It depends according to the severity of method/property. For example:
cell.textColor
此 属性 自 iOS 3.0 以来已被弃用,我们仍然可以使用它。因此,不幸的是,没有任何紧迫的截止日期来删除被弃用的内容。
在 iOS 开发中,可以使用已弃用的方法,直到 "removed"。
我知道不建议使用已弃用的方法,但这是否意味着它们可能无法正常工作或可能导致致命问题?
What are deprecated methods:
Deprecated methods or classes that are outdated one which will eventually be removed.
Apple 弃用了一些方法/ 类,当他们引入更好的替代品时,通常是因为他们想利用新硬件,OS 或语言功能(例如块)大约在构思原始方法的时候。
When a deprecated method will be removed:
It depends according to the severity of method/property. For example:
cell.textColor
此 属性 自 iOS 3.0 以来已被弃用,我们仍然可以使用它。因此,不幸的是,没有任何紧迫的截止日期来删除被弃用的内容。