Questions tagged [uitoolbar]

A toolbar is a control that displays one or more buttons, called toolbar items. A toolbar momentarily highlights or does not change the appearance of an item when tapped.

A UIToolbar is a bar of buttons in an iOS app. As formally defined by Apple, it is a control that displays one or more buttons, called toolbar items. A toolbar momentarily highlights or does not change the appearance of an item when tapped. Navigation controllers can display toolbars on the bottom of their views and manage the items for their child view controllers. The UIToolbar Class Reference can be found here on Apple's developer page.

The UIToolbar is also part of an important group in the iOS user interface, along with the status bar, navigation bar, tab bar, which all have specifically defined appearances and behaviors in iOS apps.

1285 questions
0
votes
2 answers

Setting animation to always come up

I made a textfield who's first responder is a datePicker. I also attached a toolBar to to a view, so when the textfield is tapped, the toolbar slides up with an animation. Then on the toolBar their is a done button that resigns the first responder.…
i_duhh_bomb
  • 300
  • 1
  • 10
0
votes
2 answers

Setting an animation for a toolbar from the beginning

I have a textfield which has a UIDatePicker instead of a keyboard. I also made a toolbar not connected with the datePicker but that just appears when the textfield is tapped. The problem is the animations. The datePicker slides up nicely, but the…
i_duhh_bomb
  • 300
  • 1
  • 10
0
votes
1 answer

Moved a toolbar -44 and now the button doesn't work

I made a toolbar over a UIDatePicker and for it to look proper I had to move it up. After I did this the bar item stopped working and was unresponsive. Working fine : UIToolbar *pickerToolbar = [[UIToolbar alloc] initWithFrame:CGRectMake(0, -29,…
0
votes
1 answer

Dilemma in toolbaritem

I've been working on my book app, but I have a UIBarButtonItem dilemma. I have set the 3 bar buttons on the toolbar as you can see in the image below. They work fine until I set the single tap recognizer, the last 2 lines in the code. What I want to…
boochan224
  • 371
  • 1
  • 5
  • 13
0
votes
1 answer

blank Toolbar from setItems

My UINavigationController toolbar is blank and no items show up on it. Here is my code self.navigationController.toolbarHidden = NO; UIToolbar* toolbar = self.navigationController.toolbar; NSMutableArray *items = [[NSMutableArray alloc]…
user1802143
  • 14,662
  • 17
  • 46
  • 55
0
votes
1 answer

Change UINavigation ToolBar into UIScrollView

Is there a way to replace the toolbar in a uinavigationcontroller with a custom uiscrollview? I essentially want a toolbar that one can pan left and right and can detect tap gestures.
user1802143
  • 14,662
  • 17
  • 46
  • 55
0
votes
1 answer

hidding uinavigationcontroller toolbar

How come doing [self.navigationController setToolbarHidden:NO]; works (shows the toolbar) but setting on the view directly self.navigationController.toolbar.hidden = NO; doesn't?
Avba
  • 14,822
  • 20
  • 92
  • 192
0
votes
1 answer

Reload UIToolbar in UINavigationController without reloading view

I am using a UINavigationController and setting the toolbar items by using the method setToolbarItems of my topmost UIViewController. This works fine the first time when the user goes to the screen or when the user revisits the screen. However I…
user2217812
  • 37
  • 1
  • 6
0
votes
2 answers

Set background image of UIBarButtonItem programmatically changes its size

I've been able to have a custom UIBarButtonItem with an embedded uibutton through story board. It's the map button. see parameters on this screenshot, I had to use background property instead of Image. But when I tried to customize some…
Omaty
  • 425
  • 5
  • 14
0
votes
1 answer

display page number on UIToolbar at bottom

If i have to display page number as title on uitoolbar at the bottom like this _toolbar = [[UIToolbar alloc] initWithFrame:CGRectMake(0, 960, self.view.bounds.size.width, 45)]; _title1 = [[UIBarButtonItem alloc] initWithTitle:[NSString…
user1120133
  • 3,244
  • 3
  • 48
  • 90
0
votes
2 answers

UIToolbar not showing but it's below the self.view

I make a toolbar in my view but I can not see it. I use Reveal.app to check out the structure of the view I find out the toolbar exists and it's below the view so I can not see it. How can I fix this? Of course I…
jxdwinter
  • 2,339
  • 6
  • 36
  • 56
0
votes
1 answer

UIWebView, SearchBar, and TabBar not resizing correctly after the view is reloaded in landscape?

I have a tabbar application that shows a web browser in one tab. When you rotate the view everything works fine but when you switch to another tab and then go back to that tab in landscape, the view webview, searchbar, and toolbar go back to the…
Dan Grueneberg
  • 215
  • 1
  • 4
  • 9
0
votes
2 answers

iOS push BottomBar and ToolBar simultaneously

I have an UITableView with TabBar (BottomBar) and ToolBar. When selecting a cell the detailsView is push to the stack. The detailsView does not have a TabBar nor a ToolBar. This is done within the prepareForSegue method: ... if ([segue.identifier…
JFS
  • 2,992
  • 3
  • 37
  • 48
0
votes
3 answers

Why won't this UIToolBar appear?

Here is the init method of the root view controller of my navigation controller that I am trying to display the toolbar on: -(id) initWithNibName:(NSString *)nibNameOrNil bundle:(NSBundle *)nibBundleOrNil{ self = [super initWithNibName:nil…
Sam D20
  • 2,535
  • 5
  • 25
  • 43
0
votes
2 answers

UISegmentedControl in UIButtonBarItem

I have a UISegmentedControl that I want to appear in an UIToolbar. It appears, but clicking it does not call the method that it should. Am I missing anything? Code: -(void)setupToolbars{ NSArray *segItemsArray = [NSArray arrayWithObjects:…