Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

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

like image 775
Ming Zhu Avatar asked Feb 11 '14 02:02

Ming Zhu


People also ask

Can I still use deprecated API?

We do not recommend that you use deprecated API methods. Although they may continue to be backwards compatible, there may be unexpected or unwanted behavior. Always replace the API methods that are no longer supported. Check the Deprecated API Methods and API Reference for these methods.

What does it mean when an API is deprecated?

Deprecation means that we've ended official support for the APIs, but they will continue to remain available to developers.

Where is deprecated methods in Xcode?

Navigate to Issue Navigator. In the Issue navigator, type "deprecated" in the below filter. Now you will be able to see all (and only) deprecated Buildtime warnings.

What does deprecated mean in Swift?

Deprecated methods or classes that are outdated one which will eventually be removed.


1 Answers

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 guarantee 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 of them as you can. The compiler will usually throw warnings when features that are being used have been deprecated.

like image 169
Twisted Mentat Avatar answered Oct 20 '22 20:10

Twisted Mentat