<以下範例>
主要文件檔案請參考 UIDevice
NSLog(@"this : %@",[[UIDevice currentDevice] model]); //獲取目前使用的設備 NSLog(@"%@",[[UIDevice currentDevice] name]); // Name of the phone as named by user NSLog(@"%@",[[UIDevice currentDevice] uniqueIdentifier]); // A GUID like string NSLog(@"%@",[[UIDevice currentDevice] systemName]); // "iPhone OS" NSLog(@"%@",[[UIDevice currentDevice] systemVersion]); // "2.2.1" NSLog(@"%@",[[UIDevice currentDevice] model]); // "iPhone" on both devices NSLog(@"%@",[[UIDevice currentDevice] localizedModel]); // "iPhone" on both devices
As always , if you have any question , feel free to contact me.
有任何問題,請聯絡我
沒有留言:
張貼留言