iOS get version
+ (NSString *)currentVersion { NSDictionary *bundleDict = [[NSBundle mainBundle] infoDictionary]; NSString *version = [bundleDict objectForKey:@"CFBundleShortVersionString"]; return version; }