paranitips

Never stop learning! がモットーのゆるふわエンジニアブログ

2013-03-27から1日間の記事一覧

NSURLRequestでSSL証明書を無視する

NSURLRequestを拡張することでSSLの証明書を無視します。 #import <Foundation/Foundation.h> @interface NSURLRequest (IgnoreSSL) + (BOOL)allowsAnyHTTPSCertificateForHost:(NSString*)host; @end #import "NSURLRequest+IgnoreSSL.h" @implementation NSURLRequest (IgnoreSSL) +</foundation/foundation.h>…