Custom navigation bar

前端 未结 6 479
故里飘歌
故里飘歌 2021-01-30 03:19

I was crawling Dribble and found the attached design. I was wondering how to do a custom navigation bar like this. I mean how create the navigation bar once and reuse it implici

6条回答
  •  情话喂你
    2021-01-30 03:52

    You would need to make your own UINavigationBar subclass, and use in places where you would need a navigationController.

    In this custom class is where you will draw the background, buttons, text, etc.


    Update

    Actually, taking a closer look at this example, it appears to be a UIToolBar. You can assign navigation methods to the buttons like popViewController: etc. For the "Confirm Information" and progress indicator, you can use a label and an image. For the right button, its just a graphic.

    Of course, the example you provided is simply a concept, and not an actual app. But with some creativity, a few hours of coding and a few more hours of graphics design, you can achieve this same interface.

提交回复
热议问题