Set the title of Navigation Bar created in Interface Builder

前端 未结 8 1757
挽巷
挽巷 2020-12-24 05:18

I have a modal view controller whose view comes from a XIB. I want it to have the same look and feel as the rest of my navigation based app, but it\'s not a view that\'s pu

8条回答
  •  无人及你
    2020-12-24 05:35

    in my .h file

    • Dragged the Child of the navigation item from the storyboard into the .h file

    • Named it "navigationBarTitle"

    in my .m file

    • Added self.navigationBarTitle.title = @"Some Title";

提交回复
热议问题