When will Apple remove the methods/APIs marked as deprecated?

后端 未结 1 989
遥遥无期
遥遥无期 2021-02-15 13:06

When will Apple remove the methods/APIs marked as deprecated? After 2 or 3 releases after they were marked, or never?

1条回答
  •  悲哀的现实
    2021-02-15 13:43

    In common usage deprecation merely means that the feature is no longer recommended to be used and MAY be removed entirely in a later release.

    Wikipedia - Deprecation

    It is good practice to stop using deprecated features as soon as it is reasonable to as you have no gauruntee how long they will continue to be supported. Sometimes it could be as little as the next release or many dozens of versions later.

    A quick search for Apple and Deprecation brought up this API reference where a feature has been deprecated but has survived at least one major OS revision.

    https://developer.apple.com/library/ios/documentation/uikit/reference/UIDevice_Class/DeprecationAppendix/AppendixADeprecatedAPI.html

    So yeah, when will Apple remove them? Whenever they want to, so don't build stuff now that relies on them and move old code off them as you can. The compiler will usually throw warnings when features that are being used have been deprecated.

    0 讨论(0)
提交回复
热议问题