码迷,mamicode.com
首页 > 移动开发 > 详细

iOS获取应用程序信息,版本号,程序名等

时间:2015-03-04 18:24:25      阅读:162      评论:0      收藏:0      [点我收藏+]

标签:

   
iOS获取应用程序信息

NSDictionary *infoDictionary = [[NSBundle mainBundle] infoDictionary];

其中的信息示范:

版本号:[infoDictionary objectForKey:@"CFBundleVersion"];

 

应用程序名:[infoDictionary objectForKey:@"CFBundleDisplayName"];

{

    CFBundleDevelopmentRegion = en;

    CFBundleDisplayName = "";

    CFBundleExecutable = "";

    CFBundleExecutablePath = "";

    CFBundleIdentifier = "";

    CFBundleInfoDictionaryVersion = "6.0";

    CFBundleInfoPlistURL = "";

    CFBundleName = "";

    CFBundlePackageType = APPL;

    CFBundleShortVersionString = "1.0";

    CFBundleSignature = "????";

    CFBundleSupportedPlatforms =     (

        iPhoneSimulator

    );

    CFBundleVersion = "1.0";

    DTPlatformName = iphonesimulator;

    DTSDKName = "iphonesimulator6.1";

    LSRequiresIPhoneOS = 1;

    NSBundleInitialPath = "";

    NSBundleResolvedPath = "";

    UIDeviceFamily =     (

        1,

        2

    );

    UIRequiredDeviceCapabilities =     (

        armv7

    );

    UISupportedInterfaceOrientations =     (

        UIInterfaceOrientationPortrait,

        UIInterfaceOrientationLandscapeLeft,

        UIInterfaceOrientationLandscapeRight

    );

 

}

iOS获取AppStore内应用程序信息

参考 apple 的文档:www.apple.com/itunes/affiliates/resources/documentation/itunes-store-web-service-search-api.html

具体步骤如下:

1,用 POST 方式发送请求:

http://itunes.apple.com/search?term=你的应用程序名称&entity=software

更加精准的做法是根据 app 的 id 来查找:

 

http://itunes.apple.com/lookup?id=你的应用程序的ID

iOS获取应用程序信息,版本号,程序名等

标签:

原文地址:http://www.cnblogs.com/allanliu/p/4313651.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!