<tfoot id='Fw7Px'></tfoot>
          <bdo id='Fw7Px'></bdo><ul id='Fw7Px'></ul>

      1. <i id='Fw7Px'><tr id='Fw7Px'><dt id='Fw7Px'><q id='Fw7Px'><span id='Fw7Px'><b id='Fw7Px'><form id='Fw7Px'><ins id='Fw7Px'></ins><ul id='Fw7Px'></ul><sub id='Fw7Px'></sub></form><legend id='Fw7Px'></legend><bdo id='Fw7Px'><pre id='Fw7Px'><center id='Fw7Px'></center></pre></bdo></b><th id='Fw7Px'></th></span></q></dt></tr></i><div id='Fw7Px'><tfoot id='Fw7Px'></tfoot><dl id='Fw7Px'><fieldset id='Fw7Px'></fieldset></dl></div>

        <legend id='Fw7Px'><style id='Fw7Px'><dir id='Fw7Px'><q id='Fw7Px'></q></dir></style></legend>
      2. <small id='Fw7Px'></small><noframes id='Fw7Px'>

        在客户端获取 iOS 通用框架的版本号

        Get version number of iOS Universal Framework in client(在客户端获取 iOS 通用框架的版本号)
          <legend id='qT7Ff'><style id='qT7Ff'><dir id='qT7Ff'><q id='qT7Ff'></q></dir></style></legend>

          1. <small id='qT7Ff'></small><noframes id='qT7Ff'>

            <i id='qT7Ff'><tr id='qT7Ff'><dt id='qT7Ff'><q id='qT7Ff'><span id='qT7Ff'><b id='qT7Ff'><form id='qT7Ff'><ins id='qT7Ff'></ins><ul id='qT7Ff'></ul><sub id='qT7Ff'></sub></form><legend id='qT7Ff'></legend><bdo id='qT7Ff'><pre id='qT7Ff'><center id='qT7Ff'></center></pre></bdo></b><th id='qT7Ff'></th></span></q></dt></tr></i><div id='qT7Ff'><tfoot id='qT7Ff'></tfoot><dl id='qT7Ff'><fieldset id='qT7Ff'></fieldset></dl></div>
              <bdo id='qT7Ff'></bdo><ul id='qT7Ff'></ul>
              • <tfoot id='qT7Ff'></tfoot>
                  <tbody id='qT7Ff'></tbody>

                • 本文介绍了在客户端获取 iOS 通用框架的版本号的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着跟版网的小编来一起学习吧!

                  问题描述

                  限时送ChatGPT账号..

                  这可能不仅限于 iOS 通用框架,而是所有 xxx.framework 文件.但是,我似乎找不到有关如何在客户端应用程序中获取当前版本和构建框架的文档.在应用程序中,您可以使用以下内容:

                  This is likely not limited to iOS Universal Frameworks but all xxx.framework files. However I can't seem to find documentation on how to get the current version and build of a framework within the client application. Within an app you'd use something like:

                      NSString *name = [[[NSBundle mainBundle] infoDictionary] objectForKey:@"CFBundleDisplayName"];
                      NSString *build = [[[NSBundle mainBundle] infoDictionary] objectForKey:@"CFBundleVersion"];
                      NSString *version = [[[NSBundle mainBundle] infoDictionary] objectForKey:@"CFBundleShortVersionString"];
                  

                  这将为您提供存储在应用程序的 Info.plist 中的当前信息.但是我们如何找到框架的信息.就我而言,特别是嵌入式框架.

                  That would give you the current information stored in the Info.plist for the app. But how to we find that information for a framework. And in my case, specifically an embedded framework.

                  推荐答案

                  我发现 Xcode 6 支持 Apple 新的 Cocoa Touch 框架,为这个问题提供了一个简单的答案.在为您创建的默认头文件中,例如 Framework.h,您将看到为您声明的两个常量.这些稍后可能由内部框架逻辑在运行时定义.但我已确认它们已从框架的 plist 中删除.

                  I have found that Apple's new Cocoa Touch frameworks supported in Xcode 6, offer an easy answer to this problem. In the default header file created for you, something like Framework.h, you'll see two constants declared for you. These are defined later presumably at runtime by internal framework logic. But I have confirmed they're pulled from the plist for the framework.

                  //! Project version number for LocalSearch.
                  FOUNDATION_EXPORT double FrameworkVersionNumber;
                  
                  //! Project version string for LocalSearch.
                  FOUNDATION_EXPORT const unsigned char FrameworkVersionString[];
                  

                  这篇关于在客户端获取 iOS 通用框架的版本号的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!

                  本站部分内容来源互联网,如果有图片或者内容侵犯了您的权益,请联系我们,我们会在确认后第一时间进行删除!

                  相关文档推荐

                  iOS 6 rotations: supportedInterfaceOrientations doesn#180;t work?(iOS 6 旋转:supportedInterfaceOrientations 不起作用?)
                  CABasicAnimation rotate returns to original position(CABasicAnimation 旋转返回原始位置)
                  UITabBarController Rotation Issues in ios 6(ios 6 中的 UITabBarController 旋转问题)
                  iOS: How to run a function after Device has Rotated (Swift)(iOS:设备旋转后如何运行函数(Swift))
                  How to rotate an image 90 degrees on iOS?(如何在 iOS 上将图像旋转 90 度?)
                  iOS 8 Rotation Methods Deprecation - Backwards Compatibility(iOS 8 旋转方法弃用 - 向后兼容性)

                    • <small id='R6O2X'></small><noframes id='R6O2X'>

                          <tbody id='R6O2X'></tbody>

                        <legend id='R6O2X'><style id='R6O2X'><dir id='R6O2X'><q id='R6O2X'></q></dir></style></legend>
                          <bdo id='R6O2X'></bdo><ul id='R6O2X'></ul>
                          <i id='R6O2X'><tr id='R6O2X'><dt id='R6O2X'><q id='R6O2X'><span id='R6O2X'><b id='R6O2X'><form id='R6O2X'><ins id='R6O2X'></ins><ul id='R6O2X'></ul><sub id='R6O2X'></sub></form><legend id='R6O2X'></legend><bdo id='R6O2X'><pre id='R6O2X'><center id='R6O2X'></center></pre></bdo></b><th id='R6O2X'></th></span></q></dt></tr></i><div id='R6O2X'><tfoot id='R6O2X'></tfoot><dl id='R6O2X'><fieldset id='R6O2X'></fieldset></dl></div>
                        • <tfoot id='R6O2X'></tfoot>