iOS获取当前App的名称和版本号
第一步
如图中Info.plist中鼠标点击右键,出现选项框,选着" Show Raw Keys/Values "
第二步
用下面代码就可以获取当前App的名称和版本号
NSDictionary *infoDictionary = [[NSBundle mainBundle] infoDictionary]; CFShow(infoDictionary); // app名称 NSString *app_Name = [infoDictionary objectForKey:@"CFBundleDisplayName"]; // app版本 NSString *app_Version = [infoDictionary objectForKey:@"CFBundleShortVersionString"]; // app build版本 NSString *app_build = [infoDictionary objectForKey:@"CFBundleVersion"];