Segue between two view controllers

前端 未结 3 1856
耶瑟儿~
耶瑟儿~ 2021-02-19 17:02

\"enter

On my storyboard (shown above), I have a ViewController which holds an MKMapView w

3条回答
  •  不思量自难忘°
    2021-02-19 17:37

    You actually have to set your UIViewController as the root controller of a UINavigationController (or pushed through from a view controller w/ a navcontroller). To do that

    • Drag a new navigation controller into your storyboard - it will by default be attached to a tableview controller
    • Delete the tableview controller Right click on the navgiation controller, and connect the "Root View Controller" property to your existing view controller
    • Move the entry point arrow from your view controller to the root view controller

提交回复
热议问题