在MainViewController.m下添加如下代码即可
@implementation NSURLRequest (IgnoreSSL)
+ (BOOL)allowsAnyHTTPSCertificateForHost:(NSString *)host
{
return YES;
}
@end
IO忽略ssl,布布扣,bubuko.com
IO忽略ssl
原文:http://blog.csdn.net/star_zongke/article/details/24310771