平成30/ 2018-12-10 16:38
iOS/User Agent 取得 変更

appDelegate.m
//___ アプリ起動時
- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions
{
    
    UIWebView *webView = [[UIWebView alloc]initWithFrame:CGRectZero];
    NSString *ua = [webView stringByEvaluatingJavaScriptFromString:@"navigator.userAgent"];
    NSString *ua2 = [ua stringByAppendingString:@" WPCT/1.0"];
    NSDictionary *dict = @{@"UserAgent":ua2};
    //NSLog(@"%@",ua2);
    [[NSUserDefaults standardUserDefaults]registerDefaults:dict];
        
    // Override point for customization after application launch.
    return YES;
}



>> Thanks.
ユーザーエージェントの取得と書き換え
http://net-vacation.com/iphone-apri-development/uiwebview

UIWebViewでWebページにアクセスする際に独自のUserAgentを設定する
http://www.yoheim.net/blog.php?q=20121001


>>
ユーザーエージェント
ユーザエージェント