gpt4 book ai didi

iphone - iOS 5 中的方法调配?

转载 作者:技术小花猫 更新时间:2023-10-29 10:14:44 25 4
gpt4 key购买 nike

Apple 是否在 iOS 5 中阻止了 Method Swizzling?

我做了一些尝试,发现一个带有 Method Swizzling 的应用程序可以在 iOS 4 上运行,但不能在 iOS 5 上运行。

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

最佳答案

Apple 不久前向一些被发现在 App Store 应用程序中使用 method swizzling 的开发者发送了一封电子邮件:

Your application, xxx, currently posted to the App Store is using method_exchangeImplementations to exchange the implementation of Apple provided APIs with your own implementations. Because of upcoming changes, this behavior in your application may cause a crash or cause user data loss on iPhone OS 4.0.

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

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.

看起来他们想摆脱它,所以我想说他们现在完全阻止它的可能性很高。

关于iphone - iOS 5 中的方法调配?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/7720947/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com