可用于版本让用户手动检测是否有版本更新可用。
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"
];
时间: 2024-10-02 17:20:15