iOS 获取版本号方法

    NSDictionary *infoDictionary = [[NSBundle mainBundle] infoDictionary];
    // app名称
    NSString *app_Name = [infoDictionary objectForKey:@"CFBundleDisplayName"];

    // app大版本号
    NSString *app_Version = [infoDictionary objectForKey:@"CFBundleShortVersionString"];
   
    // app build小版本号
    NSString *app_build = [infoDictionary objectForKey:@"CFBundleVersion"];

你可能感兴趣的:(iOS 获取版本号方法)