獲取ios設備信息
阿新 • • 發佈:2018-10-09
bre cat hung ole lov provider oca googl center // 獲取ios設備信息
- (void)viewDidLoad {
NSString *content=[[NSString alloc]
initWithFormat:
@"unique id: %@ \nlocalized model: %@ \nsystem version: %@ \nsystem name: %@ \nmodel: %@",
[[UIDevice currentDevice] uniqueIdentifier],
[[UIDevice currentDevice] localizedModel],
[[UIDevice currentDevice] systemVersion],
[[UIDevice currentDevice] systemName],
[[UIDevice currentDevice] model]];
UIDevice *device_=[[UIDevice alloc] init];
NSLog(@"設備所有者的名稱--%@",device_.name);
NSLog(@"設備的類別-----%@",device_.model);
NSLog(@"設備的的本地化版本-%@",device_.localizedModel);
NSLog(@"設備運行的系統---%@",device_.systemName);
NSLog(@"當前系統的版本---%@",device_.systemVersion);
NSLog(@"設備識別碼-----%@",device_.identifierForVendor.UUIDString);
//得到設備屏幕高度
float screenHeight=[UIScreen mainScreen].bounds.size.height;
NSLog(@"%@",content) ;
NSLog(@" screenHeight is %f",screenHeight)
//得到手機本機號
id number= [[NSUserDefaults standardUserDefaults] objectForKey:@"SBFormattedPhoneNumber"];
NSLog(@"number is %@",number);
}
G
M
T
Text-to-speech function is limited to 200 characters
Options : History : Feedback : Donate | Close |
獲取ios設備信息