iPhone private API of canAuthenticateAgainstProtectionSpace and didReceiveAuthenticationChallenge
I want to ask a questions about the canAuthenticateAgainstProtectionSpace and ddidReceiveAuthenticationChallenge. Are they private API iPhone application?
If yes, how can I modify it? And after I modify the private API of iPhone, will the iPhone reject my application?
If no, where should I put the modified code? I u开发者_Python百科sed to put the code within a .m file, but it did not work.
Thank you.
They are both documented in Apples documentation here So they shouldn't be private. Usually finding private API's takes some investigative work and yes Apple will almost always reject an App if it uses a private API (There has been one case I have heard of that they let it through) but you shouldn't run into troubles with those ones.
In addition to looking in the documentation for a method (if it's there it isn't private), you can also use App Scanner to search specifically for private API method signatures. It also allows you to scan your .app before submitting it to the review team.
精彩评论