获得Version和Build版本号

 

 

[[NSBundle mainBundle] infoDictionary][@"CFBundleShortVersionString"] ?: [[NSBundle mainBundle] infoDictionary][(__bridge NSString *)kCFBundleVersionKey]


// Version
[[[NSBundle mainBundle] infoDictionary] valueForKey:@"CFBundleShortVersionString"];

// Build
[[[NSBundle mainBundle] infoDictionary] valueForKey:@"CFBundleVersion"];

 

你可能感兴趣的:(获得Version和Build版本号)