zoukankan      html  css  js  c++  java
  • 如何动态获取ios工程的Bundle version版本号,bundleID,appName

    获取 bundle version版本号

    +(NSString*) getLocalAppVersion

    {

        return [[[NSBundle mainBundle] infoDictionary] objectForKey:@"CFBundleShortVersionString"];

    }

     获取BundleID

    +(NSString*) getBundleID

    {

        return [[[NSBundle mainBundle] infoDictionary] objectForKey:@"CFBundleIdentifier"];

    }

     获取app的名字

    +(NSString*) getAppName

    {

        NSString *appName = [[[NSBundle mainBundle] infoDictionary] objectForKey:@"CFBundleDisplayName"];

        NSMutableString *mutableAppName = [NSMutableString stringWithString:appName];

    }

  • 相关阅读:
    内置函数二
    通信的几个程序
    TCP协议和UDP协议
    异常处理
    logging模块
    网络编程一些概念
    hashlib
    序列化模块
    time,sys,os模块
    random模块
  • 原文地址:https://www.cnblogs.com/dashengios/p/5391076.html
Copyright © 2011-2022 走看看