Approach to make a custom tabBar

What should be the best way to create a effect like this and the handling of navigation controllers and view controllers ... what to do if I don't want to re-size each subsequent view in viewcontorller and things appear as if it is a tabBar

Approach to make a custom tabBar

-------------Problems Reply------------

I would recommend using an UIImageView for the blue background, then 5 UIButtons of custom type with PNG images for the actual buttons.

Subclass UIView and put all the code to set up the background and buttons in the init function. That way you can easily place your custom TabBar wherever you like.

The individual buttons also allow you to easily animate them for transitions if you want.

Update to reflect updated question:

If you want the actual UITabBar functionality, things become much more complex.

You have three basic options:

a) Implement the functionality you need from scratch in your new class

b) Subclass UITabBar and try to override the drawing code with the code above

c) Take a look at already existing alternative implementations of UITabBar and base your new class on one of them. This will probably be the easiest solution.

Category:iphone Views:0 Time:2011-06-17

Related post

  • Can my custom tabbar be created like so for iPhone? 2011-03-24

    I have designed a custom tabbar and the developer says the design I created can't be done. The screen is made up of a usual background with a tabbar. I'd like my tabbar to look a little different to the usual iPhone style. I would like at the bottom

  • Buttons won't hide in custom TabBar 2011-06-07

    using this tutorial I set up a custom TabBar. Unfortunately the tutorial won't describe how to hide the custom TabBar in views you don't wanna display it. In my customTabBar.h I defined - (void) hideAlsoCustomTabBar; - (void) showCustomTabBarAgain; w

  • How could I create a custom tabbar similar to this 2011-06-25

    How could I create this custom tabbar and what does it consist of? --------------Solutions------------- On you can find several TabBar implementations similar to this. iOS 5 now allows to change the background image of the tabbar bu

  • Custom Tabbar: adjusting the view of the displayed view controller so it is resized to fit above the tabbar 2011-07-25

    I need to create a customTabbar in one of my app. I subclassed UITabbarcontroller by adding a custom view to it. I made the tabbar hidden by setting self.tabbar.hidden = True; I added buttons on the customView, and on click of these buttons am handli

  • Objective-C: Custom TabBar UITabBarController 2011-08-03

    I have been searching for a way to customize the UIKit's UITabBarController. I would like to change the background image and selected tint color to follow the design from our creative team. It seems as though the background color can be altered as de

  • Custom TabBar with UIButtons 2011-11-28

    First: Sorry for my bad English! I have a class in which I create UIButton. The UIButton I add a UIView. In the ViewController I would like to add these custom tabbar. This works well so far. However, there are problems with addTarget: action: forCon

  • Custom TabBar colour iOS 5.0.1 2011-12-17

    I want to use custom TabBar colour. Afetr iOS 5 release I used the following code: CGRect frame = CGRectMake(0, 0, 480, 49); UIView *view = [[UIView alloc] initWithFrame:frame]; UIImage *tabBarBG = [UIImage imageNamed:@"tabBar.png"]; UIColor *color =

  • iPhone : Custom tabbar without the awful More menu 2011-12-19

    So i wanted to build a tabbar that has more than 5 items and is scrollable and found this article. Easy done by subclassing the UITabBarController and hide the existing tabbar: for(UIView *view in self.view.subviews) { if([view isKindOfClass:[UITabBa

  • Custom tabbar items in MonoTouch 2012-04-27

    I would like to create custom tabbar items similar to the ones shown here: I assume these have to be designed and created first in Photoshop or a similar application. Are there any resources or tutorials available that demonstrate the creation of suc

  • Best approach to creating a custom ExtJS of pure HTML 2009-12-15

    So I have a need to create an ExtJS component (version 2.3.0). The component is simply plain HTML (styled) - it is a heading. My current approach is to create a custom component as follows: /** * A ExtJS component for a header for the application */

  • What is the "best practices" approach to setting up custom global email defaults in Rails? 2010-11-23

    I'm starting a new Rails 3 app from scratch. And as I was going through basic setup ( configuring gems, sessions, etc) I ran into something that has been nagging me for a while. Our current system ( a mixture of Ruby scripts & Rails 2 app) send v

  • customized TabBar buttons flickering on mouseover/mouseout 2011-05-24

    I am using a custom skin on Flex's TabBar, and specifically the skin the controls ButtonBarButton. The width of the button is a variable size depending on the text it contains, and background of the button is an image that only displays on the select

  • What is the best approach to building a custom video player web browser plugin? 2011-07-28

    I need to stream multiple videos in a web browser and have them all be synchronized; I also need to be able to switch between audio channels on the fly. Despite a lot of research, it looks as though at present this is impossible using the current bro

  • Customizing TabBar in iphone 2010-05-25

    Can anyone guide me on How to customize the Tabbar such that each TabBarItem look like rounded button in Tabbar. and how to change the Tabbar Selection color. --------------Solutions------------- for the tabbar selection color there is no solution wi

  • Best approach for building a custom web-crawler for finding sites with some arbitary text in the URL? 2010-09-26

    I would like to find all the sites, that have the keyword 'surfing waves' somewhere in their address, very simple! But, without using ANY search engine, which means, writing a pure web-crawler. The problems,I guess, I will face are: It will, obviousl

  • Custom Tabbar in Titanium 2012-02-04

    Its mine 3rd day on Titanium SDK. How can I add tab bar in my window from another .js file ? I mean I have write the code of tab bar in createTabbar.js and I want to add in my firstView.js . Is it possible ? As I have seen many examples those have wr

  • Customizing UITabBarController by hiding the tabbar. Bad idea ? 2012-03-27

    I'm investigating ways to customize the UITabBarController. The customization consists in custom images for each bar item and a "raised" central button item. I know that Apple doesn't recommend subclassing the UITabBarController and I found some exam

  • Best approach to a customer portal in ASP.NET MVC 2010-05-29

    The problem: client needs a website to serve 10+ customers, each customer has 5-10 people they wish to grant access using login & user name, once "logged in" the user can download files specific to their company. The files will be uploaded to a d

  • tabbar custom images for iphone / ipad selection 2012-03-27

    I am working on customizing my tabbar background image and i resolved this for iphone by customizing tabbar class. it looks like that: Then same thing i put for my ipad app it looks like that I need the tab bar without extra spaces or black color in

Copyright (C), All Rights Reserved.

processed in 0.084 (s). 11 q(s)