xfan001
1/12/2016 - 3:34 PM

iOS get version

iOS get version

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