App Store - Method Swizzling Legality [closed]

心已入冬 提交于 2019-11-29 09:08:45

AFNetworking, a lib widely (IMO) used for network-requests, used swizzling up to at least version 1.3.4 to support additional acceptable status-codes and content-types in class-methods.

So it seems legit to do it.

Note: They used class_replaceMethod and not method_exchangeImplementations.

Normally swizzling would be for debugging to see when a specific method is called, or in situation you can't subclass something or use a category for it. If you don't have a tight schedule on putting your Application on the app store, I guess you could try to send your application using method swizzling and see if it's accepted. No all application are reviewed the same way, sometimes it's just really up to the reviewer.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!