iOS 获取项目名称及版本号
可用于版本让用户手动检测是否有版本更新可用。
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"
];