zoukankan      html  css  js  c++  java
  • UIkit框架之UITabBarController

    1.继承链:UIviewController:uiresponder:NSObject

    2.访问tab bar控制器的属性

        (1)@property(nonatomicweakidUITabBarControllerDelegate delegate  :设置委托属性,需要遵守 UITabBarControllerDelegate协议

        (2)@property(nonatomicreadonlyUITabBar *tabBar  :只读,应该是用来获取标签条对象

    3.管理视图控制器

        (1)@property(nonatomiccopyNSArray <__kindof UIViewController *> *viewControllers  :使用这个属性来设置标签条里面每个标签的内容界面

        (2)- (void)setViewControllers:(NSArray<__kindofUIViewController *> *)viewControllers
                      animated:(BOOL)animated
      :我不知道确定的意思,不过别的开发者是说这个用来管理视图控制器的

        (3)@property(nonatomiccopyNSArray <__kindof UIViewController *> *customizableViewControllers  :应该是可以使用这个属性让使用者能够重新排列在标签条上的项目

        (4)@property(nonatomicreadonlyUINavigationController *moreNavigationController  :当viewController大于4个时,获取"更多"标签的导航控制器

    4.管理被选择的tab

        (1)@property(nonatomicassign__kindof UIViewController *selectedViewController  :获取当前选中的视图

        (2)@property(nonatomicNSUInteger selectedIndex  :当前被选中视图的索引

  • 相关阅读:
    Shell Sort
    Insertion Sort
    Notations
    Nakamori Akina
    QuickSort
    Onedrive File Open Problem
    JSON Introduction
    System Call
    进程软中断通信
    Bubble Sort
  • 原文地址:https://www.cnblogs.com/lelun/p/5720724.html
Copyright © 2011-2022 走看看