<small id='M1ZQp'></small><noframes id='M1ZQp'>

    <legend id='M1ZQp'><style id='M1ZQp'><dir id='M1ZQp'><q id='M1ZQp'></q></dir></style></legend>
  • <tfoot id='M1ZQp'></tfoot>

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

      • <bdo id='M1ZQp'></bdo><ul id='M1ZQp'></ul>

        以编程方式在 UINavigationController 中设置 UINavigationBar 的自定义子类

        Set a custom subclass of UINavigationBar in UINavigationController programmatically(以编程方式在 UINavigationController 中设置 UINavigationBar 的自定义子类)

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

        <tfoot id='pBfZ7'></tfoot>

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

                <bdo id='pBfZ7'></bdo><ul id='pBfZ7'></ul>

                  本文介绍了以编程方式在 UINavigationController 中设置 UINavigationBar 的自定义子类的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着跟版网的小编来一起学习吧!

                  问题描述

                  限时送ChatGPT账号..

                  如果我以编程方式(没有 IB)实例化 UINavigationController,有谁知道如何使用我的自定义子类 UINavigationBar?

                  Does anyone know how can I use my custom subclass of UINavigationBar if I instantiate UINavigationController programmatically (without IB)?

                  在 IB 中拖动 UINavigationController 向我显示导航栏下并使用 Identity Inspectory 我可以更改类类型并设置自己的 UINavigationBar 子类,但以编程方式我不能, navigationBar 导航控制器的属性是只读的...

                  Drag a UINavigationController in IB show me an under Navigation Bar and using Identity Inspectory I can change class type and set my own subclass of UINavigationBar but programmatically I can't, navigationBar property of Navigation Controller is readonly...

                  如何以编程方式自定义导航栏?IB比代码"更强大"吗?我相信在 IB 中可以完成的所有事情也可以通过编程方式完成.

                  What should I do to customize the navigation bar programmatically? Is IB more "powerful" than "code"? I believed all that can be done in IB could be done also programmatically.

                  推荐答案

                  你不需要搞砸XIB,只需使用KVC.

                  You don't need to muck with the XIB simply use KVC.

                  [self.navigationController setValue:[[[CustomNavBar alloc]init] autorelease] forKeyPath:@"navigationBar"];
                  

                  这篇关于以编程方式在 UINavigationController 中设置 UINavigationBar 的自定义子类的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!

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

                  相关文档推荐

                  UITabBarController Rotation Issues in ios 6(ios 6 中的 UITabBarController 旋转问题)
                  How to rotate an image 90 degrees on iOS?(如何在 iOS 上将图像旋转 90 度?)
                  How can you rotate text for UIButton and UILabel in Objective-C?(如何在 Objective-C 中旋转 UIButton 和 UILabel 的文本?)
                  How to build Cocoa Touch Framework for i386 and x86_64 architecture?(如何为 i386 和 x86_64 架构构建 Cocoa Touch 框架?)
                  Can I embed a custom font in a bundle and access it from an ios framework?(我可以在包中嵌入自定义字体并从 ios 框架访问它吗?)
                  Undefined symbols for architecture armv7: quot;_SCNetworkReachabilityCreateWithAddressquot;(架构 armv7 的未定义符号:“_SCNetworkReachabilityCreateWithAddress)

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

                        <bdo id='TAimg'></bdo><ul id='TAimg'></ul>

                        <legend id='TAimg'><style id='TAimg'><dir id='TAimg'><q id='TAimg'></q></dir></style></legend>

                          <tfoot id='TAimg'></tfoot>

                              <tbody id='TAimg'></tbody>