An individual button or space in a UIToolbar, on iOS.
Questions tagged [uitoolbaritem]
69 questions
7
votes
2 answers
Setting Toolbar Items of UINavigationController
In iPhone OS 3.0, you can set the toolbar items of a UINavigationController using the setToolbarItems:animated: method. However, this requires you pass in an array of UIToolbarItems. While I could programmatically create these toolbar items, I'd…

Steve Harrison
- 121,227
- 16
- 87
- 72
4
votes
1 answer
Mirror text from UITextField on inputAccessoryView - UIToolBar to text on UITextField on navigationController.toolbar
In my app I have a UITextField on the navigationController toolbar.
#import "ViewController.h"
@interface ViewController ()
@property (nonatomic,strong) NSArray *toolBarButtonItems;
@property (nonatomic,strong) UITextField *textField;
@property…

denvdancsk
- 3,033
- 2
- 26
- 41
4
votes
2 answers
UINavigationBar - change UIBarButtonItem positions
I am using a UINavigationController and its bar within my app.
Now I want to change the leftBarButtonItem and rightBarButtonItem positions.
I want them to be on a different x and y position having a custom witdth and height.
But the problem is,…

Alexander
- 7,178
- 8
- 45
- 75
3
votes
1 answer
How do you get the stock UIToolBar icons?
How do I get the iPhone stock UIToolBar icons?
I need the icons that the standard iphone apps display for for getting the users location and so on.

user605957
- 2,489
- 6
- 25
- 33
3
votes
2 answers
Why setting the barItems is not working?
I have a UIViewController, and I embed it into a UINavigationController.
I want to show one item in the toolbar (and by toolbar, I mean this:
This is my code in viewDidLoad method
self.navigationController?.toolbarHidden =…

sarah
- 1,201
- 1
- 9
- 29
3
votes
0 answers
Can't click UIBarButtonItem in ios7
This code (datepicker that appear when people focus a textbox)is perfect on ios6 but on ios7 the "Done button" can't be clicked:
- (void)textFieldDidBeginEditing:(UITextField *)textField
{
UIToolbar *pickerDateToolbar = [[UIToolbar alloc]…

lrnzfrr
- 170
- 13
3
votes
1 answer
Mapview with toolbar like by default map iphone
I want to make mapview with toolbar like iphone maps.
I googled it but i cant get any appropriate things that can give me any idea to develop it.
So anyone has idea about map like below.

Rahul Patel
- 5,858
- 6
- 46
- 72
3
votes
1 answer
Toolbar item doesn't honor UITextAttributeTextShadowOffset in iOS 5
This is for a Toolbar item.
The following code works fine in the iOS 6 simulator and on iOS 6 devices.
The shadow offset (UITextAttributeTextShadowOffset) is ignored in iOS 5 simulator and iOS 5 devices.
[_doneButton setBackgroundImage:[UIImage…

Rayfleck
- 12,116
- 8
- 48
- 74
3
votes
5 answers
How to create UIBarButtonItem with UIImageView and UILabel
As shown above, I want to create an UIBarButtonItem with UIImageView and UILabel on a toolbar. I tried
UIButton *likecommButton = [UIButton buttonWithType:UIButtonTypeCustom];
likecommButton.backgroundColor = [UIColor clearColor];
…

Jason Zhao
- 1,278
- 4
- 19
- 36
2
votes
0 answers
iOS UIBarButtonItem Action doesn't work on real device
i add datePicker programmatically that has tool bar with done button
here is my code :
CGRect toolbarTargetFrame = CGRectMake(0, self.view.bounds.size.height-216-44, 320, 44);
CGRect datePickerTargetFrame = CGRectMake(0,…

Oded Dilmoni
- 41
- 5
2
votes
2 answers
Changing the Color of a custom UIToolbar above the keyboard (not just changing the text colour) in iOS 7
Within my app, I am now using the "dark" appearance for the Keyboard for all UITextFields where I was previously using the Light Keyboard.
Above the keyboard for one of the text fields, I have a custom UIToolbar created with some buttons allowing…

amitsbajaj
- 1,304
- 1
- 24
- 59
2
votes
0 answers
Left-most and right-most buttons on UIToolbar are hard to click
I spent a couple of days trying to resolve this problem, therefore I decided to share the solution with you so you can dedicate more time to your families:
Suppose you have a UIToolbar which needs to accommodate a large number of buttons (say 5).…

mkvakin
- 481
- 6
- 19
2
votes
0 answers
ios how to create a toolbar button with a popup button
I'm trying to create a toolbar like the one in tweetbot where if you press a button in the tool bar - more buttons pop up above it vertically.
I tried using a uisegmented control and rotating it 90 degrees but it looks really bad. Does any one know…

Avba
- 14,822
- 20
- 92
- 192
2
votes
1 answer
How do I move a UIToolbar Item?
I am using a UIToolbar in iOS and am trying to get a new button to 'arrive' by sliding in from the right. Is there a way to directly access the 'position' of the button on the bar? I currently have a messy workaround that is getting close to the…

user1593581
- 21
- 1
2
votes
0 answers
iPhone default system keyboard color and style guide
I created a custom UIToolbar with UIBarButtonItems as numbers and added it as an inputAccessoryView to the keyboard.
I need to make the UIToolbar match the keyboard color scheme and buttons exactly like standard iPhone keyboard numbers but I can't…

F L
- 478
- 1
- 7
- 18