Ios:cyltabbarcontroller "Low-coupling integrated Tabbarcontroller"

Source: Internet
Author: User

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
    1. The difference from other custom Tabbarcontroller
    2. The effect after integration
    3. Additional instructions for using Cyltabbarcontroller
      1. First step: Import Cyltabbarcontroller using Cocoapods
      2. Step two: Set two arrays of Cyltabbarcontroller: Controller array and Tabbar property array
      3. Step three: Set Cyltabbarcontroller to Window's Rootviewcontroller
      4. Fourth step (optional): Create a custom shape irregular plus button
    4. Q-a
differences from other custom Tabbarcontroller

the integrated Effect:

using Cyltabbarcontroller

Four steps to complete the mainstream app framework:

    1. First step: Import Cyltabbarcontroller using Cocoapods
    2. Step two: Set two arrays of Cyltabbarcontroller: Controller array and Tabbar property array
    3. Step three: Set Cyltabbarcontroller to Window's Rootviewcontroller
    4. 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"

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.