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

问题描述

苹果公司是否阻止了iOS 5中的方法调整?

Has Apple blocked Method Swizzling in iOS 5?

我正在做一些游戏并发现使用Method Swizzling的应用程序适用于iOS 4但不适用于iOS 5。

I was doing a little playing around and discovered that an app with Method Swizzling works on iOS 4 but not on iOS 5.

注意:该应用程序适用于iOS 5,但不适用于使用Method Swizzling时的部分。

NOTE: The app works on iOS 5 but not the part when Method Swizzling is used.

推荐答案

Apple前一段时间向一些发现在App Store应用程序中使用方法调配的开发人员发送了一封电子邮件:

Apple sent an email a while ago to some devs that were found to be using method swizzling in App Store apps:

xxx使用method_exchangeImplementations与您的方法ttdealloc交换dealloc的实现
。它还用你的
方法popViewControllerAnimated2:交换popViewControllerAnimated方法的
实现:

xxx uses method_exchangeImplementations to exchange the implementation of dealloc with your method ttdealloc. It also exchanges the implementation of the method popViewControllerAnimated: with your method popViewControllerAnimated2:.

请立即解决此问题,并将新二进制文件上传到
iTunes Connect。如果我们认为
这样做是谨慎或必要的话,我们可能会删除您的申请。

Please resolve this issue immediately and upload your new binary to iTunes Connect. We may remove your application if we believe that doing so is prudent or necessary.

看起来他们想要摆脱它,所以我说机会很高,他们现在完全阻止了它。

Looks like they wanted to get rid of it, so I'd say chances are pretty high that they've now blocked it completely.

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

11-02 13:54