步骤
- 创建一个项目,名称为NotesiOSApp
- 删除storyboard 修改info.plist
- ViewController添加view.backgroundColor = .yellow
- 修改ViewController名称FoldersController
- 添加nav导航条
- 添加导航条标题,并设置大标题
UINavigationBar.appearance().prefersLargeTitles = true
let navController = UINavigationController(rootViewController: FoldersController())
window = UIWindow()
window?.makeKeyAndVisible()
window?.rootViewController = navController
view.backgroundColor = .yellow
navigationItem.title = "Folders"
网友评论