|Jun 12, 2010, 06:53 PM||#1|
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:
[self.navigationController setToolbarHidden:NO]; [self.navigationController setToolbarItems:[NSArray arrayWithObjects: editButton, flexSpacer, filterControl , nil] animated:NO];
I'm trying to understand why this doesn't work, any help is appreciated, thanks!
|Jun 12, 2010, 08:38 PM||#2|
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
|Thread Tools||Search this Thread|
|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 02:34 PM.