UITabBarViewControllerDelegate

// 控制哪些 ViewController 的标签栏能被点击

- ( BOOL )tabBarController:( UITabBarController *)tabBarController shouldSelectViewController :( UIViewController *)viewController{

    // 代表 HMT_CViewController 这个 View 无法显示 , 无法点击到它代表的标签栏

    if ([viewController isKindOfClass :[ HMT_CViewController class ]]) {

        return NO ;

   }

    returnYES ;

}

// 选中哪个标签栏 , 一个监控作用吧

- ( void )tabBarController:( UITabBarController *)tabBarController didSelectViewController :( UIViewController *)viewController{

}

// More view controller 将要开始编辑

- ( void )tabBarController:( UITabBarController *)tabBarController willBeginCustomizingViewControllers :( NSArray *)viewControllers{

}

// More view controller 将要结束编辑

- ( void )tabBarController:( UITabBarController *)tabBarController willEndCustomizingViewControllers :( NSArray *)viewControllers changed:( BOOL )changed{

}

// More view controller 编辑

- ( void )tabBarController:( UITabBarController *)tabBarController didEndCustomizingViewControllers :( NSArray *)viewControllers changed:( BOOL )changed{

}
时间: 2024-10-19 22:12:27

UITabBarViewControllerDelegate的相关文章