开发者

question about viewController and navigationController

开发者 https://www.devze.com 2023-02-08 05:04 出处:网络
So say that I have a table view that has a UINavigationController. On top I have a rightButtonItem that says MAP. Clicking on MAP, will push a MapViewController to the navigationController.

So say that I have a table view that has a UINavigationController. On top I have a rightButtonItem that says MAP. Clicking on MAP, will push a MapViewController to the navigationController.

Now on the map I will have a view annotations, clicking on the annotations, I would like to push another开发者_如何转开发 view to the navigationController. My question would be, does the map and the table view have the same or separate UINavigationController?


You have to keep the same navigation controller through out the application.YES All the UIViewControllers make use of the same UINavigationController.

Cheers

0

精彩评论

暂无评论...
验证码 换一张
取 消