本文介绍了NSURLRequest的私有“setAllowsAnyHTTPSCertificate:forHost:”的替代方法的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我的iPhone应用程式仅被使用(非常安全,似乎)私人方法拒绝 + setAllowsAnyHTTPSCertificate:forHost:
for 。是否有非私人API来模拟此功能?
My iPhone application was rejected solely for using the (very safe, it seems) private method +setAllowsAnyHTTPSCertificate:forHost:
for NSURLRequest
. Is there a non-private API to emulate this functionality?
推荐答案
似乎有一个公共API;)
There seems to be a public API for that ;)How to use NSURLConnection to connect with SSL for an untrusted cert?
这篇关于NSURLRequest的私有“setAllowsAnyHTTPSCertificate:forHost:”的替代方法的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!