Apple 何时会删除标记为已弃用的方法/API? [英] When will Apple remove the methods/APIs marked as deprecated?

查看:29
本文介绍了Apple 何时会删除标记为已弃用的方法/API?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

Apple 何时会移除标记为已弃用的方法/API?标记后发布 2 或 3 个版本,还是从未发布?

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

推荐答案

通常情况下,弃用仅意味着不再推荐使用该功能,并且可能会在以后的版本中完全删除.

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.

维基百科 - 弃用

最好在合理的情况下尽快停止使用已弃用的功能,因为您不知道它们将继续支持多长时间.有时可能只有下一个版本,也可能有几十个版本.

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.

对 Apple 和 Deprecation 的快速搜索带来了此 API 参考,其中一项功能已被弃用,但至少在一次重大操作系统修订中幸免于难.

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

是的,Apple 什么时候会删除它们?只要他们愿意,现在就不要构建依赖于它们的东西,并尽可能地将旧代码移走.当正在使用的功能已被弃用时,编译器通常会发出警告.

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.

这篇关于Apple 何时会删除标记为已弃用的方法/API?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆