Reputation: 880
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?
Upvotes: 4
Views: 4730
Reputation: 328
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).
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.
Upvotes: 6
Reputation: 71058
Briefly,
See the dupe question for a longer explanation.
Upvotes: 6
Reputation: 25318
Deprecated doesn't mean removed. Its just a friendly hint for you that these functions might be gone in an future iOS version (eg. 6). Currently they still work and the review team will accept your binary. You should note that the lifetime of deprecated methods in iOS seems to be pretty long, a few methods from NSFileManager
are deprecated since iOS 2 (aka iPhone OS 2.0)
However, you are encouraged to update your App at some time, if you have a critical update that needs to be out asap, you can skip this for now, but in the future you have to change your code!
Upvotes: 2
Reputation: 9544
Upvotes: 1