在iOS 5中使用弃用的方法 [英] use deprecated methods in iOS 5

查看:122
本文介绍了在iOS 5中使用弃用的方法的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我最近将我的应用程序从iOS3升级到iOS5。在编译时,我有几个使用弃用方法的警告。

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

两个问题:

1-我会在使用iOS 5的iPhone中运行应用程序时遇到问题?

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

2-如果我没有更新方法,Apple会在将应用程序上传到AppStore时接受该应用吗?

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

推荐答案


  1. 您可能在使用以下方法的iOS 5设备上没有问题编译器告诉你不推荐使用。当然,随着时间的推移清理这个问题会是一件好事,因为弃用意味着这些方法可能不会出现在iOS 6中(或任何它将被称为)。

  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).


  • 您需要注意的是编译器警告或对象可能无法响应特定方法调用的错误。对于实际上在此过程中被删除的方法,会出现这种情况。听起来您已经这样做了,但请确保您已在XCode中将SDK设置为iOS 5,以确保您收到所有错误/警告。但这里的教训是测试,测试,测试(在设备上)。

只要您的代码编译并且针对iOS 5运行,仅使用不推荐使用的方法可能不会让您的应用被取消资格。但是,如果它在测试期间导致任何崩溃或任何类似的事情,他们可能会将它踢回给你进行返工。

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.

这篇关于在iOS 5中使用弃用的方法的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆