1.属性
viewControllers 控制器的集合-数组 tabBarController.viewControllers = @[vc1,vc2];
addChildViewController 添加控制器到集合中 [tabBarController addChildViewController:vc]
tabBarItem tabbar控制器的按钮
tabBarItem.image tabbar控制器按钮的图像 tabBarController.tabBarItem.image
tabBarItem.title tabbar控制器按钮的文字 tabBarController.tabBarItem.title = @"首页";
TabBarController 使用详解
本文介绍了 TabBarController 的核心属性和方法,包括 viewControllers 数组、addChildViewController 方法及 tabBarItem 属性等,帮助开发者更好地掌握 TabBarController 的使用技巧。
1085

被折叠的 条评论
为什么被折叠?



