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

查看:100
本文介绍了苹果何时会删除标记为已弃用的方法/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.

维基百科-弃用

优良作法是,在没有gauruntee的情况下,合理地立即停止使用不赞成使用的功能,将继续支持这些功能多长时间.有时它可能与下一个发行版一样少,也可能比以后的几十个版本少.

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.

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

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