Register FAQ / Rules Forum Spy Search Today's Posts Mark Forums Read
Go Back   MacRumors Forums > Apple Systems and Services > Programming > iPhone/iPad Programming

Reply
 
Thread Tools Search this Thread Display Modes
Old Jun 12, 2010, 06:53 PM   #1
Bruno Silva
macrumors newbie
 
Join Date: Sep 2008
Location: Portugal
UIToolbar in UINavigationController not showing any items

Hi, I'm fairly new to iOS development.

I have a NavigationView Based app with two UITableViews and several other normal views. The navigation goes from the first table to the second and then to a third view. I use Push and Pop to change views in the NavigationViewController. I tried to set a toolbar only on the second view with the table. However, I can't make the UIBarButtonItems to show on the toolbar, I think it doesn't have anything to do with the items I create because if I associate them to the navigation bar left or right button they work great.

This is the code I use to set the toolbarItems:

Code:
[self.navigationController setToolbarHidden:NO];
[self.navigationController setToolbarItems:[NSArray	arrayWithObjects:
	editButton, flexSpacer, filterControl	, nil]
animated:NO];
This code runs in the ViewDidLoad method.

I'm trying to understand why this doesn't work, any help is appreciated, thanks!

Bruno Silva
Bruno Silva is offline   0 Reply With Quote
Old Jun 12, 2010, 08:38 PM   #2
Bruno Silva
Thread Starter
macrumors newbie
 
Join Date: Sep 2008
Location: Portugal
Found the answer, I knew I had to set the navbar items in the navcontroller, and I assumed it was the same for the toolbar, but it is not, you need to set it on whatever UIViewController you're showing

Bruno.
Bruno Silva is offline   0 Reply With Quote

Reply
MacRumors Forums > Apple Systems and Services > Programming > iPhone/iPad Programming

Thread Tools Search this Thread
Search this Thread:

Advanced Search
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

Forum Jump

Similar Threads
thread Thread Starter Forum Replies Last Post
Resolved: Growl not showing any applications in pref its Mac OS X 10.7 Lion 5 Aug 7, 2011 11:34 AM
iTunes no longer showing any items in "purchased" lifeguard Mac Applications and Mac App Store 0 Aug 5, 2011 10:28 PM
Movies Tab Not Showing Up on Apple Tv 2G polo3400 Apple TV and Home Theater 2 Jul 13, 2011 07:12 AM
finder does not show files or item count in folder bloomage OS X 0 Apr 27, 2011 12:55 AM
iTMS not showing all items in my podcast I make :( tonywalker23 iPod 0 Jun 9, 2006 08:24 PM


All times are GMT -5. The time now is 06:06 AM.

Mac Rumors | Mac | iPhone | iPhone Game Reviews | iPhone Apps

Mobile Version | Fixed | Fluid | Fluid HD
Copyright 2002-2013, MacRumors.com, LLC