2014-02-18 31 views

回答

0

是,它內置於應用程序的包:

NSBundle *mainBundle = [NSBundle mainBundle]; 
NSString *version = [mainBundle objectForInfoDictionaryKey:@"CFBundleShortVersionString"]; 
NSString *build = [mainBundle objectForInfoDictionaryKey:@"CFBundleVersion"]; 

Reference