当前位置:首页 > 操作系统 > Ios

从0开始学习Swift开发IOS应用(4)——Navigation Controller

新建一个single view app

在视图窗口拖住一个Navigation Controller,默认的Navigation Controller 是自动关联Table View的,如果不需要,可以把自动添加的Table View 删除 ,新建一个View Controller 关联Navigation Controller即可。(右键从Nav拖向view,选择rootview)

技术分享650) this.width=650;" src="/upload/getfiles/default/2022/11/14/20221114060745460.jpg" title="nav.png" />

技术分享650) this.width=650;" src="/upload/getfiles/default/2022/11/14/20221114060746070.jpg" title="1.png" />

技术分享650) this.width=650;" src="/upload/getfiles/default/2022/11/14/20221114060746520.jpg" title="2.png" />

常用属性介绍

navigation bar

  1. Style 风格

  2. Translucent 背景,一般把背景去掉

  3. Bar Tint 背景色

  4. Back Image 背景图片

  5. TiTle Color 标题颜色

  6. Tint 返回标题颜色

原文:http://lichunbo.blog.51cto.com/10020606/1656408


【说明】本文章由站长整理发布,文章内容不代表本站观点,如文中有侵权行为,请与本站客服联系(QQ:254677821)!