iOS获取app应用版本信息

//获取手机的版本信息

NSDictionary *infoDictionary = [[NSBundle mainBundle] infoDictionary];

NSString *name = [infoDictionary objectForKey:@”CFBundleName”];

NSString *version = [infoDictionary objectForKey:@”CFBundleShortVersionString”];

NSString *build = [infoDictionary objectForKey:@”CFBundleVersion”];

NSLog(@”%@,%@,%@,%@”,infoDictionary,name,version,build);

分享到: 更多
Separator image Posted in IOS.