iOS获取当前app版本

2015-03-23 0 656
iOS获取当前app版本
    //软件版本  
    - (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 nil];  
        [alertView show];  
    }  

遇见资源网 objective-c iOS获取当前app版本 http://www.ox520.com/16576.html

常见问题

相关文章

发表评论
暂无评论
官方客服团队

为您解决烦忧 - 24小时在线 专业服务