Set a custom subclass of UINavigationBar in UINavigationController programmatically

前端 未结 12 1533
清歌不尽
清歌不尽 2020-11-28 17:29

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

<
12条回答
  •  清歌不尽
    2020-11-28 18:16

    If you want to subclass navBar just to change background image - there is no need to in iOS 5. There will be method like this one setBackgroundImage

提交回复
热议问题