GithubHelp home page GithubHelp logo

verticaltabbarcontroller's Introduction

VerticalTabbarController

A vertical tabbar controller for iPad.

使用方法一:
    1、继承此类
    2、设置 self.viewControllers
    3、设置 self.dock.dockItems (可设置属性包括:title, image, selectedImage, 
                                backgroundColor, selectedBackgroundColor)
    4、设置 self.dock.itemHeight 和 self.dock.dockWidth 默认是 80*80
    5、设置此类为启动页
    例:
          UIViewController *vc1 = [[UIViewController alloc] init];
          UIViewController *vc2 = [[UIViewController alloc] init];

          self.viewControllers = @[vc1, vc2];

          self.dock.dockItems = @[[DockItem itemWithImage:image
                                            selectedImage:selectedImage
                                                    title:title],……];
使用方法二:
    在AppDelegate中设置

          VerticalTabbarController *vc = [[VerticalTabbarController alloc] init];
          
          UIViewController *vc1 = [[UIViewController alloc] init];
          UIViewController *vc2 = [[UIViewController alloc] init];

          vc.viewControllers = @[vc1, vc2];

          vc.dock.dockItems = @[[DockItem itemWithImage:image
                                          selectedImage:selectedImage
                                                  title:title], ...];
          self.window.rootViewController = vc;
          [self.window addSubview:vc.view];

verticaltabbarcontroller's People

Contributors

storyofmylife avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

Forkers

youngsky2017

verticaltabbarcontroller's Issues

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.