markdown 导航控制器

Posted

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了markdown 导航控制器相关的知识,希望对你有一定的参考价值。

### Navigation Controllers
* Easy to traverse multiple views of an app
* Going forward and backward
* Swiping right to go back and left to go forwards
* Contains a navigation bar on top of the view that denotes what view it is
---
### Creating a Navigation Controller
* Select the initial view controller, go to `Editor` -> `Embed in` -> `Navigation Controller`
* Notice your views (how it looks on the iphone) has the navigation bar on top
* To go to the navigation controller **from** another view controller:
    * `navigationController?.popToRootViewController(animated: true)`
* **If you need to set this view controller as the initial view controller:**
    * Click on the yellow icon on the view controller
    * Head into the inspector tool
    * Check `Is initial view controller`
### Linking New View Controllers to Swift Files
* If you drag a view controller from the object library on to Main.storyboard
* And you want to link it to an existing view controller file
* Select the yellow icon on the view controller
  *  Go in to the identity inspector
  *  Specify the custom class name as the name of the view controller

以上是关于markdown 导航控制器的主要内容,如果未能解决你的问题,请参考以下文章

博客园添加markdown文章导航栏

markdown admin nav导航

markdown 粘性导航为叙事

markdown 将元素添加到WordPress导航菜单。

markdown 选项卡式导航(滚动更改)

markdown 顶部滑动导航