0

While learning Cocoa Touch frameworks from the new Apple documentation I've noticed that over time some functions get deprecated which appears with a strike-through line in the documentation. As engineers or developers, how do you guys find out why a function was deprecated and most importantly how do you find the new options that are available if there are any?

An example is AVAudioPlayerDelegate where two functions have been deprecated for handling audio interruptions: AVAudioPlayerDelegate Apple Documentation

rmaddy
  • 314,917
  • 42
  • 532
  • 579
Laurence Wingo
  • 3,912
  • 7
  • 33
  • 61
  • 2
    That's something that should be explicitly said in the documentation. If it's not, you'll have to ask the devs where they posted that information. – Carcigenicate Nov 11 '16 at 16:06
  • @Carcigenicate much appreciative, I've always relied on Stackoverflow because the questions and answers help a lot. When you say "ask the devs where they posted that information" are you referring to the Apple Developer Forums? If so I will go there as well. – Laurence Wingo Nov 11 '16 at 16:19

1 Answers1

1

I searched for ios developer release notes and found this link

The why always comes from improvement. The improvement could be in terms of performance, readability, new features, bugs & errors, new members with a different approach who come to write the language.
As a developer you should follow the release notes of every new iOS version, over the course of following 2-3 versions you get a better grip on the whole thing also keep in mind that the compiler is smart and sometimes by typing old code it would pop new syntax as a suggestion or you can use migration tools.

mfaani
  • 33,269
  • 19
  • 164
  • 293