ios获取app当前的版本号
2016-01-05 09:10
423 查看
NSDictionary *infoDic = [[NSBundle mainBundle] infoDictionary];
NSString *currentVersion = [NSString stringWithFormat:@"当前软件版本为:%@",infoDic[@"CFBundleShortVersionString"]];
UIAlertView *alertView = [[UIAlertView alloc]initWithTitle:@"软件版本" message:currentVersion delegate:nil cancelButtonTitle:@"确定" otherButtonTitles:nil,nil];
[alertView show];
NSString *currentVersion = [NSString stringWithFormat:@"当前软件版本为:%@",infoDic[@"CFBundleShortVersionString"]];
UIAlertView *alertView = [[UIAlertView alloc]initWithTitle:@"软件版本" message:currentVersion delegate:nil cancelButtonTitle:@"确定" otherButtonTitles:nil,nil];
[alertView show];
相关文章推荐
- iOS-iPhone系统版本号-iPhone App版本号
- 如何判断NSDictionary是否包含某个键
- iOS7隐藏状态栏 status Bar
- APP版本号迭代规则
- iOS 10.0.2之后获取不到版本号?
- YARN批处理方式kill Applications解决方案
- 解决问题:Android中选择要使用的应用
- COCOS学习笔记--内存管理(二)-PoolManager类和AutoreleasePool类的讲解
- android--手机桌面添加网址链接图标(解决方式)
- Objective-C 内存管理机制
- ios百度地图逆地理编码(基于2.3.0--2.4.0SDK开发)
- ios百度地图的使用(基本定位和地理编码)
- iOS百度地图poi检索(基于百度地图2.3.0SDK开发)
- 仿QQ侧滑菜单效果
- log4j:WARN No appenders could be found for logger
- 如何在android style文件中使用自定义属性
- Android---60---Notification 通知栏的简单使用
- android学习7——canvas.concat(Matrix matrix)作用
- unity学习笔记2
- Unity3D学习笔记01