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 01-19-2011, 09:25 PM   #1 (permalink)
Registered Member
 
mouser58907's Avatar
 
Join Date: Feb 2010
Posts: 188
mouser58907 is on a distinguished road
Default Bottom half of UITabBar buttons not working

Basically from the glossy shading down is unclickable. Here is how I create it:

Code:
tabBarViewController = [[TabBarViewController alloc] initWithNibName:@"TabBarViewController" bundle:[NSBundle mainBundle]];
I've seen other posts about this with no responses. Any ideas?
__________________
My Apps:Pee Prank (free)
My Company: Pulsar Productions

If I helped you, download my App or tell a friend! Thanks.
mouser58907 is offline   Reply With Quote
Old 01-20-2011, 09:06 AM   #2 (permalink)
Nuisance Developer
 
Join Date: Jul 2009
Location: Italy
Posts: 4,691
dany_dev is on a distinguished road
Default

the problem should be in addSubview of it, where you are trying to add as subview?
__________________
dany_dev is offline   Reply With Quote
Old 01-20-2011, 12:59 PM   #3 (permalink)
Registered Member
 
mouser58907's Avatar
 
Join Date: Feb 2010
Posts: 188
mouser58907 is on a distinguished road
Default

Code:
		[window addSubview:tabBarViewController.view];
That's it, it's a window based app, and that is the window it starts with.
__________________
My Apps:Pee Prank (free)
My Company: Pulsar Productions

If I helped you, download my App or tell a friend! Thanks.
mouser58907 is offline   Reply With Quote
Old 01-21-2011, 09:55 AM   #4 (permalink)
Registered Member
 
mouser58907's Avatar
 
Join Date: Feb 2010
Posts: 188
mouser58907 is on a distinguished road
Default

I'm going to bump this with a slight update. When I present a modal view controller there is a slight white area at the bottom during the animation and it disappears once the animation is complete. This white area corresponds exactly to the unclickable area of the tab bar.
__________________
My Apps:Pee Prank (free)
My Company: Pulsar Productions

If I helped you, download my App or tell a friend! Thanks.
mouser58907 is offline   Reply With Quote
Old 01-22-2011, 01:37 PM   #5 (permalink)
Registered Member
 
mouser58907's Avatar
 
Join Date: Feb 2010
Posts: 188
mouser58907 is on a distinguished road
Default

Bump, does anyone have any suggestions? This is a pretty big issue that I cannot figure out.
__________________
My Apps:Pee Prank (free)
My Company: Pulsar Productions

If I helped you, download my App or tell a friend! Thanks.
mouser58907 is offline   Reply With Quote
Old 01-22-2011, 01:46 PM   #6 (permalink)
Registered Member
 
Join Date: Apr 2010
Posts: 46
kasparp is on a distinguished road
Default

Quote:
Originally Posted by mouser58907 View Post
Bump, does anyone have any suggestions? This is a pretty big issue that I cannot figure out.
I have had my struggles with tabbar aswell not this particular problem though.

Do you have any simulated interface in the mainwindow nib?, IB will make the actual view smaller then but since it's your mainwindow and the tabbar will be added inside you dont want that.
__________________
Cheers
kasparp is offline   Reply With Quote
Old 01-22-2011, 03:34 PM   #7 (permalink)
Registered Member
 
mouser58907's Avatar
 
Join Date: Feb 2010
Posts: 188
mouser58907 is on a distinguished road
Default

Good thought, I did have the status bar set to gray, but removing that didn't actually change anything. I was able to reproduce the issue in a test project. I've uploaded it here if anyone would be so kind as to take a look at it:

http://craigmouser.com/random/TestUITabBar.zip

Thank you.
__________________
My Apps:Pee Prank (free)
My Company: Pulsar Productions

If I helped you, download my App or tell a friend! Thanks.
mouser58907 is offline   Reply With Quote
Old 01-22-2011, 05:17 PM   #8 (permalink)
Use [code] tags please
 
Join Date: Jun 2009
Location: Jacksonville, FL
Posts: 410
timle8n1 is on a distinguished road
Default

Quote:
Originally Posted by mouser58907 View Post
Good thought, I did have the status bar set to gray, but removing that didn't actually change anything. I was able to reproduce the issue in a test project. I've uploaded it here if anyone would be so kind as to take a look at it:

http://craigmouser.com/random/TestUITabBar.zip

Thank you.
Your view holding the tab bar is too small (A simple but wrong fix is to change the view size in the myTabBar.xib to 480). But you are doing it in a strange way anyway. Look at the tab bar template included with Xcode and use it to get started until you understand how it is supposed to fit together.
timle8n1 is offline   Reply With Quote
Old 01-22-2011, 06:01 PM   #9 (permalink)
Registered Member
 
mouser58907's Avatar
 
Join Date: Feb 2010
Posts: 188
mouser58907 is on a distinguished road
Default

That fixed it! Thanks. The reason I'm doing it this way is so I can put logic int he tab bar's controller that will affect all of the viewcontrollers it holds. Changing that size to 480 did the trick!
__________________
My Apps:Pee Prank (free)
My Company: Pulsar Productions

If I helped you, download my App or tell a friend! Thanks.
mouser58907 is offline   Reply With Quote
Reply

Bookmarks

Tags
tabbar, uitabbarcontroller, uittabbar, unclickable

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: 354
11 members and 343 guests
7twenty7, dre, iAppDeveloper, jeroenkeij, Mah6447, Morrisone, mottdog, sacha1996, Sami Gh, stanny, toon4413
Most users ever online was 1,387, 04-10-2012 at 04:21 AM.
» Stats
Members: 175,667
Threads: 94,120
Posts: 402,898
Top Poster: BrianSlick (7,990)
Welcome to our newest member, host number one
Powered by vBadvanced CMPS v3.1.0

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