Welcome to the Treehouse Community
Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.
Looking to learn something new?
Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.
Start your free trial
Josh Benard
3,919 PointsDepreciated Methods
I have noticed that a lot of the iOS Development Videos contain instructions to use depreciated methods inside the projects. On the videos that we designed during the iOS 5 era, I understand using methods depreciated in iOS 6 or iOS 7. However, projects like the UI Enhancement of the Ribbit project that were written specifically for iOS 7 still contain these depreciated methods.
Does depreciation not really matter? Am I still (generally) able to use depreciated methods inside my code? Can I publish an app with a depreciated method?
2 Answers
John W
21,558 PointsYes, you can publish an app with deprecated methods (though Apple can reject your app based on this). HOWEVER, when a method is deprecated, its behavior and compatibility with post-deprecation systems and hardwares are no longer guaranteed by Apple, and you risk your app breaking for obscure and hard-to-diagnose reasons.
Often times when a method is deprecated, Apple documentation would provide an alternative. Force yourself to use those alternatives. Read and understand the documentation of the new methods in detail. Search forums for answers. And hone your research skills in the process. These skills will become extremely valuable as you complete the Treehouse tracks and go write your own app.
Josh Benard
3,919 PointsExcellent! Thanks!