This article from reprint, original link: Http://cocoapods.org/pods/CYLTabBarController by chenyilong
GitHub Link: Https://github.com/ChenYilong/CYLTabBarController
Cyltabbarcontroller "Low-coupling integrated Tabbarcontroller"Navigation
- The difference from other custom Tabbarcontroller
- The effect after integration
- Additional instructions for using Cyltabbarcontroller
- First step: Import Cyltabbarcontroller using Cocoapods
- Step two: Set two arrays of Cyltabbarcontroller: Controller array and Tabbar property array
- Step three: Set Cyltabbarcontroller to Window's Rootviewcontroller
- Fourth step (optional): Create a custom shape irregular plus button
- Q-a
differences from other custom Tabbarcontroller
the integrated Effect:
using Cyltabbarcontroller
Four steps to complete the mainstream app framework:
- First step: Import Cyltabbarcontroller using Cocoapods
- Step two: Set two arrays of Cyltabbarcontroller: Controller array and Tabbar property array
- Step three: Set Cyltabbarcontroller to Window's Rootviewcontroller
- Fourth step (optional): Create a custom shape irregular plus button
Step Two: Set two arrays of Cyltabbarcontroller: Controller array and Tabbar property array
Step Three: Set Cyltabbarcontroller to Window's Rootviewcontroller
Fourth Step (optional): Create a custom shape irregular plus button
Additional Information
If you want to further customize the TabBar style you can set in the -application:didFinishLaunchingWithOptions: method
q-a
Q: Why does placing 6 Tabbaritem show an exception?
A:
Apple Rules:
One TabBar can only appear up to 5 TabBarItem , and the sixth and more will not be displayed.
Also note that Apple detects UITabBarItem its subclasses, so place a "plus button", which is not in UIButton "5".
You can add up to 5, that is, plus TabBarItem a "plus button," which puts up to TabBar 6 controls on one. Otherwise the 6th and subsequent occurrences TabBarItem will be automatically screened out. And in terms of Apple's audit mechanism, more than 5 will also be directly rejected shelves.
Q: After I have removed the item on both sides of the demo, the response area of the button is changed to look like this:
Ios:cyltabbarcontroller "Low-coupling integrated Tabbarcontroller"