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