Coder Social home page Coder Social logo

mhtabbarcontroller's Introduction

MHTabBarController

This is a custom container view controller for iOS 5 that works just like a regular UITabBarController, except the tabs are at the top and look different.

Screenshot

To customize the tab bar's appearance you currently have to mess around in the code a bit.

The MHTabBarController source code is copyright 2011-2012 Matthijs Hollemans and is licensed under the terms of the MIT license.

mhtabbarcontroller's People

Contributors

hollance 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  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

mhtabbarcontroller's Issues

My MHTabBarController Becomes a Mess After it Uses External App

Hi Matthijs,

Sorry to bother you with this. But I've been struggling with this for about 3 weeks. Any help would be appreciate it.

In my ios app, when I use an extrenal app such as the iPhone Camera (by using the UIImagePickerController) and the iTunes Store (to pay for a service), my app becomes a mess.

Specifically, what becomes a mess is the MHTabBarController you created.

When I say "mess", I mean that the tabs content of the MHTabBarController becomes empty. So when i touch any tab, it does not show anything but just a blank view.

Any idea of why this could happen?

SCREENSHOT: http://i.stack.imgur.com/UFbeE.jpg

Thanks a lot.

PresentModal working weired

I've reassigned the tabbar frame to my required place. When i opened any of content using [self presentmodal...] and when i dismiss it the tabbar frame was moved to top.

Assiging view controllers -

tabBar = [[MHTabBarController alloc]init];
tabBar.delegate = self;
tabBar.viewControllers = viewControllers;
tabBar.view.frame = CGRectMake(0.0, 50.0, 320.0, 430.0);

opening modalview
SVModalWebViewController *web = [[SVModalWebViewController alloc]initWithURL:[NSURL URLWithString:@"http://www.instagram.com"]];
[self presentModalViewController:web animated:YES];

How to fix this?

Please add semantic version tags

I’ve recently added MHTabBarController to the CocoaPods package manager repo.

CocoaPods is a tool for managing dependencies for OSX and iOS Xcode projects and provides a central repository for iOS/OSX libraries. This makes adding libraries to a project and updating them extremely easy and it will help users to resolve dependencies of the libraries they use.

However, MHTabBarController doesn't have any version tags. I’ve added the current HEAD as version 0.0.1, but a version tag will make dependency resolution much easier.

Semantic version tags (instead of plain commit hashes/revisions) allow for resolution of cross-dependencies.

In case you didn’t know this yet; you can tag the current HEAD as, for instance, version 1.0.0, like so:

$ git tag -a 1.0.0 -m "Tag release 1.0.0"
$ git push --tags

Selected & Non-Selected Image in TabBar

I see the way to set the image in the tab bar, but is there an ability to set the state as well. So if it's selected tab it's one image, and if it's not-selected another?

Change Current tab

I am a complete moron when it come to this custom stuff.

Here is what I am doing. I have a login pop over with the presentViewController. Once they log in the see their information, but on every tab is a log out button. What I want is if they log out the tabBarController need to go back the the first tab so if someone else logs in right after them they don't start out in an odd place.

Any guidance would be awesome.

Storyboard Example

Is there any chance you could throw together the same demo you have, but one that uses a storyboard? That'd be great. :)

(I know this isn't an issue with the code, but I don't know where else to post such a question.)

Image in TabBar

In your demo, the image appears on the second tab, as it should. I've utilized the exact same code, but no image is appearing. Any guidance would help.

Add Navigation Bar Above TabBarController

Would be great if we could put the inherited nav bar above the tab bar if needed. I did try to push the tab bar down but the zone of where the container sits is black.

Hide/Show tab bar based on UITableVIew Scroll

I want to hide tab bar whenever we scrolled up and show tab bar whenever we scrolled down.For example at Index 0 in UITableView it will show the tab bar and whenever we change the index it needs to be hidden.Please tell me any methodology so that i can implement this in my project.

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.