一、了解一下
@1、tabBar也被稱(chēng)為選項(xiàng)卡,位于屏幕底部,用于劃分功能塊
@2、導(dǎo)航條:讓用戶(hù)在有層級(jí)關(guān)系的視圖中瀏覽(頁(yè)1->頁(yè)2->頁(yè)3)
@3、選項(xiàng)卡:管理關(guān)系不明顯的視圖集合,通常是功能分塊
二、基本使用
@1、push時(shí),隱藏選項(xiàng)卡:
//Hide Bottom Bar on Push
if let pageVC = storyboard?.instantiateViewController(withIdentifier: "GuiderViewController") as? GuiderViewController {
pageVC.hidesBottomBarWhenPushed = true
present(pageVC, animated: true, completion: nil)
}
@2、基本屬性

tabBar屬性.png
//選中時(shí)的背景
UITabBar.appearance().selectionIndicatorImage = #imageLiteral(resourceName: "tabitem-selected")