Ios 如何在标头中获取要发送到服务器端的默认用户代理
我想获得默认的用户代理,比如操作系统IOS10等信息。 我该怎么做 使用UIDevice在iOS中获取系统信息Ios 如何在标头中获取要发送到服务器端的默认用户代理,ios,Ios,我想获得默认的用户代理,比如操作系统IOS10等信息。 我该怎么做 使用UIDevice在iOS中获取系统信息 [[UIDevice currentDevice] systemName]; // e.g. @"iOS" [[UIDevice currentDevice] systemVersion]; // e.g. @"10.0" [[UIDevice currentDevice] model]; // e.g. @"iPhone", @"iPod touch" [[UIDevice curr
[[UIDevice currentDevice] systemName]; // e.g. @"iOS"
[[UIDevice currentDevice] systemVersion]; // e.g. @"10.0"
[[UIDevice currentDevice] model]; // e.g. @"iPhone", @"iPod touch"
[[UIDevice currentDevice] localizedModel]; // localized version of model