天天看点

iOS中 UITabBarController中自定义UITabBar

1.创建多个视图控制器,放如UITabBarController中

  3.获取到tabBarController中的tabBar,在从tabBar中获取到每个items

  4. 设置tabBar中items的标题

   5.设置tabBar中items的图片

    6.设置tabBar的背景图片

   7.改变tabBar中items上字体的颜色

 8.将tabBarController加入window中