IOS-获取Model(设备型号)、Version(设备版本号)、app(程序
[cpp]
NSLog(@"uniqueIdentifier: %@", [[UIDevice currentDevice] uniqueIdentifier]);
NSLog(@"name: %@", [[UIDevice currentDevice] name]);
NSLog(@"systemName: %@", [[UIDevice currentDevice] systemName]);
NSLog(@"systemVersion: %@", [[UIDevice currentDevice] systemVersion]);
NSLog(@"model: %@", [[UIDevice currentDevice] model]);
NSLog(@"localizedModel: %@", [[UIDevice currentDevice] localizedModel]);
NSDictionary *infoDictionary = [[NSBundle mainBundle] infoDictionary];
CFShow(infoDictionary);
// app名称
NSString *app_Name = [infoDictionary objectForKey:@"CFBundleDisplayName"];
// app版本
NSString *app_Version = [infoDictionary objectForKey:@"CFBundleShortVersionString"];
// app build版本
NSString *app_build = [infoDictionary objectForKey:@"CFBundleVersion"];
相关新闻>>
- 发表评论
-
- 最新评论 更多>>
今日头条
更多>>您可能感兴趣的文章
- Android:实现TabWidget选项卡按钮在屏幕下方
- ios学习笔记(二)xcode 4.3.2下实现基本交互
- 多线程之NSInvocationOperation
- (iPhone/iPad开发)presentViewController相应方法在SDK5.0前后
- iphone开发之object c基础一定义接口
- ios开发问题:添加库和复制其它工程文件编译错误问题
- Lexical or Preprocessor Issue 'xxx.h
- Memory on the iPhone
- iPhone开发学习笔记006—— NSNotification自定义通知名
- iPhone应用开发之十一:常用的三种动画表现效果