iOS 获取版本号

 NSString *key = @"CFBundleShortVersionString";

 NSString *currentVersion = [NSBundle mainBundle].infoDictionary[key];



[[[ NSBundlemainBundle infoDictionary objectForKey : @"CFBundleShortVersionString" ]]



你可能感兴趣的:(iOS 获取版本号)