How do I add a Navigation Bar to a UITableViewController in Interface Builder?

前端 未结 8 1170
陌清茗
陌清茗 2020-12-23 13:46

Interface builder does not let me click and drag a Navigation Bar onto a Table View Controller!!! It is super frustrating.

All I want is a table view with an edit bu

8条回答
  •  梦毁少年i
    2020-12-23 14:31

    First add a navigation controller and put the table view controller (as root view controller) onto the navigation controller. This is how it is done in Code because I don't use IB.

提交回复
热议问题