获取iOS应用的版本号,和bulid值
2016-10-31 本文已影响13人
无wu
版本号:[[[NSBundlemainBundle]infoDictionary]objectForKey:@"CFBundleShortVersionString"] 或者[[NSBundlemainBundle]objectForInfoDictionaryKey:@"CFBundleShortVersionString"];
bulid值:[[[NSBundlemainBundle]infoDictionary]objectForKey:@"CFBundleVersion"]