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

Similar Threads
thread Thread Starter Forum Replies Last Post
iTunes 'Items not in my library' sharing showing duplicates aircanman Mac Applications and Mac App Store 0 Aug 12, 2013 03:09 PM
Not all items being tagged when tagging multiple items in iTunes willryan42 Mac Applications and Mac App Store 0 Oct 8, 2012 06:44 PM
Automatically load a ViewController in a UINavigationController within a UITabBar app isthisonetaken iPhone/iPad Programming 2 Sep 19, 2012 11:50 AM
subclassing UINavigationController Tex-Twil iPhone/iPad Programming 4 Jul 21, 2012 12:59 PM
UISlider in UIToolbar -> can't get slider.value and process it. iOS SDK. gwelmarten iPhone/iPad Programming 11 Jul 10, 2012 09:18 AM

Forum Jump

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

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

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