Uitabbarcontroller Steps to use
1. Initialize UITabBarController2. Set UIWindow Rootviewcontroller to UITabBarController3. Depending on the situation, add the corresponding number of sub-controllers by Addchildviewcontroller method There are 2 ways to add a Uitabbarcontroller controller
-(void) Addchildviewcontroller: (Uiviewcontroller *) Childcontroller; Adding a single child controller
@property (nonatomic,copy) Nsarray *viewcontrollers; Set up a sub-controller array
Properties of the Uitabbarcontroller
What content is displayed inside the Uitabbarbutton, determined by the Tabbaritem attribute of the corresponding sub-controller @property (nonatomic,copy) NSString *title; Title Text @property (nonatomic,retain) UIImage *image; Icon @property (nonatomic,retain) UIImage *selectedimage; When selected, the icon @property (nonatomic,copy) NSString *badgevalue; Reminding the digital app of the mainstream UI framework structure