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
1 answer

UIViewController hidesBottomBarWhenPushed puts the UIView in the wrong place during push/pop animation

I have two UIViewControllers within a UINavigationController. The topmost has hidesBottomBarWhenPushed set to YES. When I push the topmost UIViewController, its UITableView is pushed about 20px above where it should be (notice the difference in cell…
Heath Borders
  • 30,998
  • 16
  • 147
  • 256
0
votes
1 answer

Toolbar not showing

I have created an interface using interface builder with a tabBarController. This tabBar controller has three viewControllers. There is a problem with the last one, that displays an image View and a toolBar on top of the screen. The toolbar contains…
Pao
  • 206
  • 3
  • 10
0
votes
1 answer

How to hide UItoolbar on segmented click

I have create a UIViewController with multiple subviews.. To switch to all subviews i have added a segmented control.. screen looks like this.. On the second view i have added a UIToolbar, using this line of code.. toolbar = [UIToolbar new]; …
Link
  • 531
  • 4
  • 10
  • 18
0
votes
1 answer

UIToolBar images are displaying incorrectly

I have a problem with this UIToolBar displaying images incorrectly. Some show fine and others don't. I was wondering if anyone has encountererd this before. Not sure if it's a transparency thing perhaps. You can see how image 1 and image 3 are white…
hanumanDev
  • 6,592
  • 11
  • 82
  • 146
0
votes
5 answers

UIToolbar shows different color on ios 5.0 and ios 6.0 Simulators

I have set tintcolor for my UIToolBar.It displays Correctly in ios 6.0 but it shows black color on ios 5.0 simulator. My code is here originalBounds = mysearchBarBarItem.customView.bounds; mySearchBar.bounds =…
Harikrishnan
  • 9,688
  • 11
  • 84
  • 127
0
votes
1 answer

Any way to have a UIToolbar always on the physical top of device regardless of orientation?

I'm trying to optimize the screen space for my graphics app and I want to support all orientations, but it would be great if I could leave the UIToolbar at the physical top of the iPhone or iPad (by the camera), and have the rest of the app and…
pizzafilms
  • 3,829
  • 4
  • 24
  • 39
0
votes
1 answer

showing selection for buttons on UIToolbar

I have 4 buttons on uitoolbar and I have images for all four button for default state only. On selection, I need to show it as selected. Now my question is that how to show button as selected when there is no image for selected state. I want to show…
Rahul Gupta
  • 808
  • 11
  • 15
0
votes
1 answer

iPhone IBOutlet responds on 3.5" in simulator but not on 4" / device

this one is a weird one, I'm updating the last of my old apps for the new 4" iphone screen. I'm finding that a bottom uitoolbar with two segmented controls respond to user interaction in the 3.5" simulator, but when I build & run it on my 4" screen…
David Homes
  • 2,725
  • 8
  • 33
  • 53
0
votes
1 answer

toolbar does not animate smoothly

I am animating some interface elements by using a CGAffineTransform. It works fine, but for some reason a toolbar animates with this method does not animate smoothly. It sort of pops or flashes (seems to move up before moving down) before animating…
OWolf
  • 5,012
  • 15
  • 58
  • 93
0
votes
1 answer

uitoolbar with icons/text similar to uitabbar

Ideally I want to use a UIToolbar but I want the icons at the bottom to appear as they would in a UITabBar meaning with icon for default and highlighted states and title beneath. I know I can drag a UIButton onto the toolbar and it will create a…
rick
  • 451
  • 3
  • 13
0
votes
1 answer

Which UI element for day-switching bar?

In the Calendar app on the iPhone, when displaying a day, you can switch to the next an previous day with a gray bar at the top. My question is: which interface element would you use for that? UIToolbar, UITabbar or a…
mrueg
  • 8,185
  • 4
  • 44
  • 66
0
votes
1 answer

Unable to reimplementing the draw method of UIToolbar class

I'm unable to override the draw method of the UIToolbar class. I want to customize the toolbar with a background image and some buttons. I tried this both in the AppDelegate.m and then also in my viewcontroller implementation file. here's my…
hanumanDev
  • 6,592
  • 11
  • 82
  • 146
0
votes
3 answers

How to add an oversized button in the middle of a toolbar

I am writing a camera app and I need to create a toolbar (at the bottom of the screen of course) with 3 buttons, the middle button needs to be oversized exceeding the height of the navigation bar showing the image of a camera. It is unclear to me…
Chuck Mc Duran
  • 107
  • 2
  • 8
0
votes
4 answers

how to set label to center in uitoolbar

I am developing an universal app for iOS so that I have to set label to center in UIToolBar. Please help me to do this. The code I have implemented UILabel *label = [[UILabel alloc] initWithFrame:CGRectMake(0, 0, 250, 40)]; label.backgroundColor =…
Ravi Varma
  • 131
  • 1
  • 1
  • 10
0
votes
1 answer

UISegmentedControl inside UIToolbar does have wrong height for Lanfscape

Somehow the Segmented Control does not get the proper height when the iPhone is in Landscape. It is already bad enough when rotating the simulator that the toolbar at the bottom doesn't get thinner height, but when navigating back to the previous…