| 注册
请输入搜索内容

热门搜索

Java Linux MySQL PHP JavaScript Hibernate jQuery Nginx
xmnx
10年前发布

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];        }