|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|
|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|
All times are GMT -5. The time now is 09:02 AM.