I'm trying to get the device's User-Agent String - the ones listed here: http://www.enterpriseios.com/wiki/Complete_List_of_iOS_User_Agent_Strings
Here's the code I'm using:
UIWebView *webView = [[UIWebView alloc]initWithFrame:CGRectZero];
NSString *uaString = [webView stringByEvaluatingJavaScriptFromString:@"navigator.userAgent"];
The result I'm getting is:
Mozilla/5.0 (iPhone; CPU iPhone OS 7_1_1 like Mac OS X) AppleWebKit/537.51.2 (KHTML, like Gecko) Mobile/11D201
What I want go get is:
Apple-iPhone4C1
How can I do that?