Basic UITabBarController customization, uitabbarcontroller

Source: Internet
Author: User

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

 

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.