debug 联调 webview JS端
didFinishLaunchingWithOptions {}
// [NSClassFromString(@"WebView") _enableRemoteInspector];
[NSClassFromString(@"WebView") performSelector:@selector(_enableRemoteInspector)]; //safari debug
appdelegate.h + (void)_enableRemoteInspector;
手机safari 设置为 联调
webview 弹出的键盘无法响应 输入框 解决办法 当前有webview的类 加上下面这段
AppDelegate * del = (AppDelegate *)[UIApplication sharedApplication].delegate;
[del.window makeKeyAndVisible];
web访问绕过SSL验证 z在webview类.m (@implementation WebPageViewController)文件 实例前加上这一段
@implementation NSURLRequest (NSURLRequestWithIgnoreSSL)
+ (BOOL)allowsAnyHTTPSCertificateForHost:(NSString *)host
{
return YES;
}
@end