Advertise Mobile SDKs Books Events Forum News Social Networking Support Us
Follow @iphonedevsdk on Twitter

Interface 2, Advanced iOS
Mockup & Code Gen
($9.99)

Make your own iPhone apps
and run them live!
(free)

Pic Frame Dynamo: Photo Editing
($0.99)

Abiliator
($1.99)

Want your application or service advertised on iPhone Dev SDK?

Go Back   iPhone Dev SDK Forum > iPhone SDK Development Forums > iPhone SDK Development

Reply
 
LinkBack Thread Tools Display Modes
Old 11-22-2010, 07:26 AM   #1 (permalink)
Registered Member
 
Join Date: Jun 2009
Posts: 159
bluemonkey is on a distinguished road
Default How can I customise UITabBarController or make my own?

Hi,

I have been messing around for hours now trying to get this to work.

I am building an application which needs to have a very customised Tab Bar Controller, initially I was adding each button to the UIView as a button with the image set then setting up the IBAction to do the following when clicked

Code:
[currentView.view removeFromSuperview];
[currentView release];
currentView = [[aboutView alloc] init];
[self.view addSubview:currentView.view];
I am now running into problems where i need to click a UITableViewCell on the news view for example and that needs to push the next view into place NewsViewDetail and for this I need the navigationcontroller.

It seems i have made a complete mess of this and have loss any sense of direction.

I'm now thinking this could all be so much easier if I use UITabBarController along with UINavigationController (hidden) but I am unsure of how I can customise the tab bar to look like the attached screenshot.



Any tips or advice would be much appreciated, this problem has been driving me crazy.

Thanks
__________________
Aaron
bluemonkey is offline   Reply With Quote
Old 11-22-2010, 07:59 AM   #2 (permalink)
Registered Member
 
Join Date: Dec 2008
Location: Falkensee, Germany
Posts: 23
HHuckebein is on a distinguished road
Default

Quote:
Originally Posted by bluemonkey View Post
Hi,

I have been messing around for hours now trying to get this to work.

I am building an application which needs to have a very customised Tab Bar Controller, initially I was adding each button to the UIView as a button with the image set then setting up the IBAction to do the following when clicked

Code:
[currentView.view removeFromSuperview];
[currentView release];
currentView = [[aboutView alloc] init];
[self.view addSubview:currentView.view];
I am now running into problems where i need to click a UITableViewCell on the news view for example and that needs to push the next view into place NewsViewDetail and for this I need the navigationcontroller.

It seems i have made a complete mess of this and have loss any sense of direction.

I'm now thinking this could all be so much easier if I use UITabBarController along with UINavigationController (hidden) but I am unsure of how I can customise the tab bar to look like the attached screenshot.



Any tips or advice would be much appreciated, this problem has been driving me crazy.

Thanks
Hi Aron,

to have the radio button behaviour of a UITabBar and a complete new ui design, you need to implement your own classes.
But if you feel you can live with less, you can customize the UITabBar e.g. background color to fit into you design.
There are several links out there (e.g Stack Overflow)

Bernd
HHuckebein is offline   Reply With Quote
Old 11-22-2010, 10:36 AM   #3 (permalink)
Registered Member
 
Join Date: Jun 2009
Posts: 159
bluemonkey is on a distinguished road
Default

Quote:
Originally Posted by HHuckebein View Post
Hi Aron,

to have the radio button behaviour of a UITabBar and a complete new ui design, you need to implement your own classes.
But if you feel you can live with less, you can customize the UITabBar e.g. background color to fit into you design.
There are several links out there (e.g Stack Overflow)

Bernd
Hi

Thanks for the reply Bernd, I am still struggling trying to get to grips with this and have also searched stackoverflow without much luck.

Basically on I need to have the blue buttons on the bottom of all my views which act like the Tab Bar Controller, any help or points you could offer would be great, so far i am just hitting dead ends.

Thanks
__________________
Aaron
bluemonkey is offline   Reply With Quote
Old 11-23-2010, 04:52 AM   #4 (permalink)
Registered Member
 
Join Date: Dec 2008
Location: Falkensee, Germany
Posts: 23
HHuckebein is on a distinguished road
Default

Quote:
Originally Posted by bluemonkey View Post
Hi

Thanks for the reply Bernd, I am still struggling trying to get to grips with this and have also searched stackoverflow without much luck.

Basically on I need to have the blue buttons on the bottom of all my views which act like the Tab Bar Controller, any help or points you could offer would be great, so far i am just hitting dead ends.

Thanks
Well Aron, you should think about your reinventing the wheel.
Apple has spent a lot of efforts to create UI elements. In my opinion you should use Apple design elements as much as possible and only do some customizing (color etc.). User are happy if they recognize ui elements and know immediatly how the work.

Anyway, here is the link to an article which might help you
Changing Tint / Background color of UITabBar - Stack Overflow

http://www.lehigh.edu/~sol0/TabBarGradient.jpg

Good luck
Bernd
HHuckebein is offline   Reply With Quote
Reply

Bookmarks

Tags
customise, uinavigationcontroller, uitabbarcontroller

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



» Advertisements
» Online Users: 371
7 members and 364 guests
apatsufas, Kirkout, lzwasyc, MarkC, Sami Gh, SamorodovAlex, VinceYuan
Most users ever online was 1,387, 04-10-2012 at 04:21 AM.
» Stats
Members: 175,664
Threads: 94,120
Posts: 402,898
Top Poster: BrianSlick (7,990)
Welcome to our newest member, Leslie80
Powered by vBadvanced CMPS v3.1.0

All times are GMT -5. The time now is 02:45 AM.
Powered by vBulletin® Version 3.8.0
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.3.0