如何使用 XCODE Objective C 为 IOS 提供完全自定义的导航栏
How to have a completely customised navigation bar for IOS using XCODE Objective C
我需要在我的xcode项目中自定义我的导航栏(如下图 )
导航栏增加了高度,中间有一个搜索栏和一个左侧的主页按钮和右侧的帮助按钮。帮助按钮右上角的国家和帐户访问权限。我想让这个导航栏在我的应用程序的所有屏幕上都可用。
如果您需要有关该问题的更多信息,请询问我。
尝试使用以下步骤:
- Hide your navigation bar.
- Add UIView with same frame as Navigation bar (0, 0, 320, 64)
- Use UIButton instead of BarButtonItem and UILabel in place of navigation titlebar
- And your customised navigation bar design is ready!!
- Now set actions on Left button to perform pop operation.
尝试告诉我,如果你做不到。
我需要在我的xcode项目中自定义我的导航栏(如下图 )
导航栏增加了高度,中间有一个搜索栏和一个左侧的主页按钮和右侧的帮助按钮。帮助按钮右上角的国家和帐户访问权限。我想让这个导航栏在我的应用程序的所有屏幕上都可用。
如果您需要有关该问题的更多信息,请询问我。
尝试使用以下步骤:
- Hide your navigation bar.
- Add UIView with same frame as Navigation bar (0, 0, 320, 64)
- Use UIButton instead of BarButtonItem and UILabel in place of navigation titlebar
- And your customised navigation bar design is ready!!
- Now set actions on Left button to perform pop operation.
尝试告诉我,如果你做不到。