GithubHelp home page GithubHelp logo

levey / leveytabbarcontroller Goto Github PK

View Code? Open in Web Editor NEW
170.0 15.0 45.0 245 KB

Create TabBarController with more customization than UITabBarController.

Home Page: https://github.com/levey/LeveyTabBarController

Objective-C 100.00%

leveytabbarcontroller's Introduction

About

LeveyTabBarController is more customizable than UITabBarController.

it can set transparent tabbar, set background, insert/remove tab, set tabbar item with image as you wish. Enjoy it : )

How to Use


Initialization

leveyTabBarController = [[LeveyTabBarController alloc] initWithViewControllers:YOUR_CONTROLLERS imageArray:YOUR_IMAGES];

Custom Background Image

[leveyTabBarController.tabBar setBackgroundImage:[UIImage imageNamed:@"tabbarbg.png"]];

Make TabBar Transparent

[leveyTabBarController setTabBarTransparent:YES];

Add a Tab

UIViewController *vc = [[FirstViewController alloc] init];
[self.leveyTabBarController insertViewController:vc withImageDic:YOUR_IMAGES atIndex:YOUR_INDEX];
[vc release];

###Screenshots⤵

0

1


And always, have a nice day!

leveytabbarcontroller's People

Contributors

levey avatar lightory avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

leveytabbarcontroller's Issues

view appear/disappear not call

viewWillAppear
viewDidAppear
viewWillDisappear
viewDidDisappear
are not called.

Also, in LeveyTabBar init, you mistype "Selected" to "Seleted", #define suggested.

subview 的管理似乎有些问题

目前的设计:点击某个 tab 后,前一个 view 是被覆盖的,并没有被 remove。

这样会导致一些问题:

  • 第二次点击某一个 tab 时,对应的 viewWillAppear 和 viewDidAppear 等方法不会被调用。
  • 如果每个 Tab 都对应一个 tableViewController,对导致点击 statusBar 回到顶部的功能失效。

UINavigationController的NavigationBar设置为隐藏之后,只有第一次push进入下一层VC有动画,之后都是直接一闪,显示下一层VC

UINavigationController的NavigationBar设置为隐藏之后,只有第一次push进入下一层VC有动画,之后都是直接一闪,显示下一层VC。
搞了半天还是不知道这么回事。如果不隐藏NavigationBar则不会有这个问题,但是没办法,要自定义NavigationBar。
求解。

好吧,再三调试,准确来说是,调用hidesTabBar的时候,整个视图会跳上去,如下图
QQ20130225-1

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.