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

UIToolbar with Prev/Next utilizing multiple textfield in multiple sectioned tableview storyboard

I need help with adding logic to get the static table view cell section index. I have a plain static UITableView with 2 sections, in each section there are 2 cells with textfields. I implemented a code for adding a toolbar with prev/next/done…
kupilot
  • 494
  • 1
  • 3
  • 15
0
votes
2 answers

UIBarButtonItems not calling actions

I've created a UIToolBar with UIBarButtonItems but when I tap them, the selector's are not being called. Any help would be greatly appreciated. UPDATE Based on suggestions in the comments, I modified my code, but unfortunately, the buttons still do…
Sonny Parlin
  • 931
  • 2
  • 13
  • 28
0
votes
2 answers

UITextField delegate causes UIToolBar not show in iOS

This is what I am doing to display a UIToolbar in a UITextField's acceccory view.. Unfortunately I am not able to see it for some reason. What am I doing wrong here? UIBarButtonItem *flexiableItem = [[UIBarButtonItem alloc]…
Tim Tuffley
  • 605
  • 1
  • 6
  • 20
0
votes
1 answer

Bottom tool bar is missing when i open the app?

When i load the app my bottom tool bar is missing but when i move the toolbar to the center of the screen it showing .My view frame is default 0,0,320,480 .Then why bottom toolbar not appearing ? check the image ,you can see the top bar but…
Navi
  • 1,696
  • 2
  • 17
  • 36
0
votes
1 answer

Title text color in bar button item

I have a bar button item that only functions to display a string that is updated when something is performed on screen. I have set the text color to white. But, it is displayed on screen with a gray color. Whatever color I change the text to I…
DaveLass
  • 625
  • 1
  • 8
  • 17
0
votes
1 answer

UIBarButtonItem triggers action only when pressed for long enough

I have a few simple UIBarButtonsItems(no customization other than changing style, color and alpha). Everything was working perfectly fine for some time. But now I need to press BarButton for a long time(4-5 seconds) before the action is triggered. I…
zambrey
  • 1,452
  • 13
  • 21
0
votes
2 answers

UIBarButtonItem to open new view when using Storyboard

I need to create the UIToolbar and the UIBarButtonItem programmatically. I'm using Storyboard for the layout. How is now a new view opened by pressing the toolbar button which was programmatically created? (I know how to do it with Segue when the…
JFS
  • 2,992
  • 3
  • 37
  • 48
0
votes
1 answer

UINavigationController and UIToolBar not working in iOS 6

I am working on iPad app in which click event of UINavigationController and UIToolBar is working fine in iOS 5 but, It is not working in iOS 6. My code: self.window.rootViewController=navCon; [self.window makeKeyAndVisible]; and in other…
Siddh
  • 712
  • 4
  • 21
0
votes
1 answer

Best way to implement UIToolbar with UITextField above keyboard

What is the best way to have a UIToolbar with a UITextField appear above the keyboard ? In particular, I'm looking for a way to implement this in iOS 6. The basic functionality I am trying to achieve is similar to iOS SMS app except the keyboard…
user2312407
  • 67
  • 1
  • 11
0
votes
1 answer

Tried to add custom UIBarButtonItem to UIToolBar, but item comes out messed up

I'm trying to add a custom button (shape and color) to my UIToolBar, but it comes out much differently than it should. What button looks like: What it looks like in the bar: Here's the code I used to add it: UIImage *backButtonImage = [UIImage…
user212541
  • 1,878
  • 1
  • 21
  • 30
0
votes
2 answers

Customizing UIBarButtonItems in various parts of applications (background image and shape)

I want to change the background image of my UIBarButtonItems. In the root view, I want them to be a certain background image (but still rounded-rect buttons) in the nav bar, but in the next view, I have a UIToolBar where I want it to have different…
Doug Smith
  • 29,668
  • 57
  • 204
  • 388
0
votes
1 answer

UIBarButtonItem custom view not displaying properly

I'm trying to make an audio player, and have a toolbar on bottom. I programmatically add a barbutton item with a UIImageView as it's customView property, but when the image displays it is barely on screen: the image is Pause@2x.png, is 40x40…
Chris Loonam
  • 5,735
  • 6
  • 41
  • 63
0
votes
1 answer

How to set UIToolBarPosition Top or bottom

To set UIToolBar background Image I use the below code. UIToolbar *tool=[[UIToolbar alloc] initWithFrame:CGRectMake(0, 0, self.view.frame.size.width, 100.0)]; [tool setTintColor:[UIColor darkGrayColor]]; UIBarButtonItem *btn=[[UIBarButtonItem alloc]…
weber67
  • 525
  • 1
  • 9
  • 18
0
votes
4 answers

UIButton hidden behind UIToolbar

Context I've got a UIButton that I'm adding, method is below: [self.view addSubview:[self returnCustomSubmitButton]]; I don't add the toolbar as a subview, I set the ViewControllers navigationController property toolBarHidden to NO. -…
drc
  • 1,905
  • 4
  • 22
  • 28
0
votes
1 answer

UIToolBar center.y returns value off the screen

I'm doing a NSLog on the self.navigationController.toolbar.center.y of a UIToolBar that is visible. I'm showing the UIToolBar in a UIViewController. This (self.navigationController.toolbar.center.y) is returning 590 points (on retina 4inch…
drc
  • 1,905
  • 4
  • 22
  • 28