//软件版本
- (void)softwareVersion
{
NSDictionary *infoDic = [[NSBundle mainBundle] infoDictionary];
NSString *currentVersion = [NSString stringWithFormat:@"当前软件版本为:%@",infoDic[@"CFBundleShortVersionString"]];
UIAlertView *alertView = [[UIAlertView alloc]initWithTitle:@"软件版本" message:currentVersion delegate:nil cancelButtonTitle:@"确定" otherButtonTitles: nil];
[alertView show];
}
iOS:获取当前app版本
最新推荐文章于 2021-05-26 02:23:08 发布