pushViewController without navigationcontroller

前端 未结 5 1551
执念已碎
执念已碎 2020-12-31 06:54

I have a class that is of type UITableViewController. This class has a member of type UINavigationBar that I use for adding in an edit button for t

5条回答
  •  执念已碎
    2020-12-31 07:29

    What could also be done is to use a Navigation Controller as usual and then hide it.

    To hide the Navigation Controller using storyboards: select it and uncheck "Show Navigation Bar" in the attribute inspector. Others might suggest to hide the navigation bar in each controller, but the problem with that is that it will appear for a millisecond and then disappear.

    Navigation Controller attributes tab

提交回复
热议问题