如何使用 XCODE Objective C 为 IOS 提供完全自定义的导航栏

How to have a completely customised navigation bar for IOS using XCODE Objective C

我需要在我的xcode项目中自定义我的导航栏如下图 )

导航栏增加了高度,中间有一个搜索栏和一个左侧的主页按钮和右侧的帮助按钮帮助按钮右上角的国家和帐户访问权限。我想让这个导航栏在我的应用程序的所有屏幕上都可用。

如果您需要有关该问题的更多信息,请询问我。

尝试使用以下步骤:

  1. Hide your navigation bar.
  2. Add UIView with same frame as Navigation bar (0, 0, 320, 64)
  3. Use UIButton instead of BarButtonItem and UILabel in place of navigation titlebar
  4. And your customised navigation bar design is ready!!
  5. Now set actions on Left button to perform pop operation.

尝试告诉我,如果你做不到。