Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

use deprecated methods in iOS 5

I recently upgraded my application from iOS3 to iOS5. And at compile time I have several warnings for using deprecated methods.

Two questions:

1- Will I have problems when run the application in an iPhone with iOS 5?

2- If I did not update the methods, Will Apple accept the application when uploading it to the AppStore?

like image 706
android iPhone Avatar asked Dec 07 '22 17:12

android iPhone


1 Answers

  1. You will probably not have a problem on iOS 5 devices using methods that the compiler is telling you are deprecated. Of course, it would be a good thing to clear up this issue over time because deprecated means those methods might not be present in iOS 6 (or whatever it will be called).

    • What you need to watch out for are compiler warnings or errors that an object may not respond to a particular method call. These would occur for methods that actually were removed along the way. It sounds like you have already done this, but be sure that you have set your SDK set to iOS 5 in XCode to ensure you are getting all the errors/warnings. But the lesson here is test, test, test (on devices as well).
  2. As long as your code compiles and runs against iOS 5, using a deprecated method alone probably won't get your app disqualified. If it causes any crashing or anything like that during testing, however, they will likely kick it back to you for rework.

like image 141
aTotalStranger Avatar answered Dec 11 '22 11:12

aTotalStranger