iPhone one title for all view controllers

后端 未结 4 619
天涯浪人
天涯浪人 2021-01-25 00:51

I have an app with tab bar controller (with 4 views controller) and it contains a navigation controller. All of this was create programmatically. My question: Is there a way how

4条回答
  •  长发绾君心
    2021-01-25 01:23

    You can create a very basic subclass of UIViewController and set its title. Then, just have your other UIViewController subclasses inherit from this base class instead of directly from UIViewController.

提交回复
热议问题