IO忽略ssl

来源:互联网 发布:淘宝91邀请码多少钱 编辑:程序博客网 时间:2024/05/01 09:37

在MainViewController.m下添加如下代码即可

@implementation NSURLRequest (IgnoreSSL)

 

+ (BOOL)allowsAnyHTTPSCertificateForHost:(NSString *)host

{

    return YES;

}

 

@end

0 0