December 2011
3 posts
SSL NSURLRequest
@interface NSURLRequest(SSL)
+ (BOOL)allowsAnyHTTPSCertificateForHost:(NSString *)host;
@end
@implementation NSURLRequest(SSL)
+ (BOOL)allowsAnyHTTPSCertificateForHost:(NSString *)host {
// do some filter based off of "host" here
return YES;
}
@end
uiwebview debug
- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions
{
:
:
[NSClassFromString(@"WebView") performSelector:@selector(_enableRemoteInspector)];
:
:
}
safari
http://localhost:9999
uiview dump
NSLog(@"%@", [view performSelector:@selector(recursiveDescription)]);