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

前端 未结 8 1157
陌清茗
陌清茗 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条回答
  •  [愿得一人]
    2020-12-23 14:30

    From the outline view, make sure your Table View Controller is selected.

    Then go to the Editor menu, and click on the Embed In submenu, and choose Navigation Controller and voila. You have your navigation controller pointing to your tableview controller with a relationship built in.

提交回复
热议问题