Swift_UINavigationController層次展示

導航控制器,用於顯示具有一定層次結構的內容,它維護了一個視圖控制器棧,所有的視圖控制器都處於堆棧中

UIWindowScene -(Foreground Active)
 UIWindow
 UITransitionView
 UIDropShadowView
-UITableBarController
 UILayoutContainerView
 UITransitionView
 UIviewControllerWraperView
-NyNavigationController
 UILayoutContainerView 
  UINavigationBar
   UIImageView 導航欄底部分割線
   UIBarBackground
    UIVisualEffectView 
     UIVisualEffectBackdropViuew 藍色 並顯示標題
     UIVisualEffectSubView 白色
     UIVisualEffectSubView 藍色 並顯示標題
   UINavigationBarContentView
 UINavigationTraqnsitionView
-HomeController
  UIView
   SimpleTableView
    UITableViewCell
     UITableViewCellContentView
      UITableViewCellAccessoryButton cell自帶的按鈕
      UITableViewCellSeparatorView cell底部分割線
      UIScrollViewScrollInDicator 列表的滑動標識
     



//設置導航欄標題顏色
self.navigationBar.titleTextAttributes = [NSAttributedStringKey.foregroundColor:UIColor.white]

 

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章