Basic UITabBarController customization, uitabbarcontroller
UITabBarController Customization
Features
Usage
1. Prepare yourTabBarImages and other images (hahaha !!!!), My images are all placed inAssets. xcassetsMedium.
2. Import the Categroy folder in this project, which includes:HexColor. h/. m(Set the color ),NSString + RenderingModel. h/. m(Process the image to make it true or the default one ),UIColor + CreateImage. h/. m(Fill in the background color of tabBar ),UIFont + fonts. h/. m(Set the font ),UIView + SetRect. h/. m(Processing frame ),UIView + glowView. h/. m(Small icon in the upper right corner of tabBarItem ).
3. The rest is inAppdelegate. mTo create your framework, see the following details.
4. The createdViewControllerAll are inherited.UIViewcController.
5. Note: I have hidden it on the home page.NavigationBarIn the left-side navigation pane.TabBar and custom navigationBar.
Because the first two pages are hidden, the second-level pages and nothing else exist.
Source code
Github:Https://github.com/makingitbest/UITabBarController-Custom
Details
1. AdjustmentUITabBarItemFont color and font size
2. AdjustmentUITabBarItemImage and Text Location
Usage is similar to this:[Self setupController: controller tabBarItemType: kTitleImageType];
3. SetUITabBarStyle: mainly to change the background
Usage:[Self tabBarController: tabBarController style: kCustomStyle];
4. SetUITabBarItemOfBadgeValue(This has not been studied)
Usage:[Self setupBadgeValueWithTabBarController: tabBarController atIndex: 2];
5. navigation bar andTabBarHide settings
6. CustomNavigationBarItem