iOS 设置 UIWebView UserAgent

NSString *userAgent = [[[UIWebView alloc] init] stringByEvaluatingJavaScriptFromString:@"navigator.userAgent"];

NSString *customUserAgent = [userAgent stringByAppendingFormat:@"%@", @"; xfq/1.0"];

[[NSUserDefaults standardUserDefaults] registerDefaults:@{@"UserAgent":customUserAgent}];

上一篇:Spring整合Hibernate--声明式事务管理


下一篇:FDCT变换 公式法