- ·上一篇文章:CANavigationBar
- ·下一篇文章:CATabBarDelegate
CATabBarController(标签栏控制器)
的索引值CAViewController* getSelectedViewController();返回值:CAViewController*参数:解释:获取当前选中的viewControllervirtual bool showSelectedViewControllerAtIndex(unsigned int index);返回值:bool参数:类型参数名说明unsigned intindex索引位置(从0开始)解释:根据索引值显示当前选中的viewControllervirtual unsigned int getSelectedViewControllerAtIndex();返回值:unsigned int参数:解释:获取当前的被选中的viewController的索引值virtual void setTabBarHidden(bool hidden, bool animated);返回值:void参数:类型参数名说明boolhidden是否隐藏(默认false)boolanimated是否开启动画效果解释:TabBar的显示与隐藏void updateItem(CAViewController* viewController);返回值:void参数:类型参数名说明CAViewController*viewController需要更新的视图管理器解释:更新视图void showTabBarSelectedIndicator();返回值:void参数:解释:显示刷新TabBar
CATabBarController(标签栏控制器)