UITabBarController upgrade customization and skycontroller upgrade

Source: Internet
Author: User

UITabBarController upgrade customization and skycontroller upgrade
UITabBarController Customization

 

Features

 

Usage

1. preparations:

  • Add related images to Assets. xcassets;
  • Import the Categroy folder (the files in this folder are not detailed here, please refer to the http://www.cnblogs.com/makingitbest/p/5789355.html if you have any questions );
  • Import the MBProgressHud folder (here the file: MBProgressHUD. h/. m is a third-party reference, and MBProgressHUD + Convenience. h/. m is self-encapsulated and will be described in detail );
  • Import The GCD file (there are nine files, personal understanding of usage, refer to: http://www.cnblogs.com/makingitbest/p/5733748.html );

2. Create mnmnavigationcontroller to inherit UINavigationController

3. Create CustomViewController to inherit UIViewController;

4. Create NormalContentViewController to inherit CustomViewController;

5. Create NormalTitleViewController to inherit NormalContentViewController;

6. Other viewcontrollers inherit CustomViewController, but this inheritance will be changed later. For details, refer to the following section. 4.

 

Source code

Github: https://github.com/makingitbest/UITabBarController-custom1

 

Details

1. Customize the navigation bar controller to actively control its display or hide.

 

2. There is no difference between the construction of the framework and the first one. The main difference is that the navigation bar can be hidden automatically here.

 

3. to customize each viewController, perform several steps:

 

The following describes in detail:

(1) Bottom-layer CustomViewController

 

(2) layer of the area in the middle, loading effect.

 

(3) At the last level page, we carefully customized our navigation bar.

 

4. Change inheritance.

 

5. Handle a bug after adding a gesture. After adding a gesture, you can slide the page and return to the upper-level page.

 

6. Processing the HUD

 

7. display of loading effect

 

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.