Questions tagged [uitoolbaritem]

An individual button or space in a UIToolbar, on iOS.

69 questions
2
votes
2 answers

bar button item add toolbar programmatically

I want to add button instead of bar button item into toolbar programmatically. I select it because button has image infodark defaut. so how is this done programmatically?
kEvin
  • 411
  • 6
  • 18
1
vote
2 answers

iOS - Set UIToolBarItem on UINavigationController

I drag out a toolbaritem in storyboard and set it on my nav controller, but when I run my code it's not there, is there something I'm missing? EDIT: Tried setting it in code as well in my viewDidLoad method: UIBarButtonItem *rightBarButton =…
8vius
  • 5,786
  • 14
  • 74
  • 136
1
vote
0 answers

Alpha of UIBarButtonItem background can not be set to zero

I have an idea to use my own images as BarButton items. I did following: Added UIView to UIToolbar in Interface Builder. View was automatically converted to UIBarButtonItem with UIView contained. Added UIImageView to UIView Set Alpha of the UIView…
mbpro
  • 2,460
  • 3
  • 22
  • 37
1
vote
1 answer

How can I style an MKUserTrackingBarButtonItem?

I'm adding the items programatically, but MKUserTrackingBarButtonItem doesn't seem to offer any way to style it to fit in with a BlackTranslucent UIToolBar...
Undistraction
  • 42,754
  • 56
  • 195
  • 331
1
vote
1 answer

How to make setEnabled on ToolbarItems work with SDK 4.0 -iPhone

I have added a custom button to a toolbar and have set the property setEnabled:NO but the button does not shows up greyed out when the view loads using SDK 4.0. However if the same code is compiled with SDK 3.1.2 the button shows up greyed out. Any…
user636060
  • 13
  • 3
1
vote
0 answers

iOS - Custom UIToolbar - aligning one UiBarButtonItem left, another right

I am creating a custom toolbar for a small chat application which has a camera button, a textfield and a send button. All of the functionality is working, but I am stuck with trying to get the Send button position. The camera button needs to be…
Ashley
  • 11
  • 6
1
vote
1 answer

How to add smooth low shadow on UIToolBar frame and line separator between UIToolBarItems

I am trying to create an UIToolBar looks like image-1 , however output of my operations did occur as image-2. How could I add a shadow layer of UIToolBar and separator between its Items ? I did find this question for separator but there no answer in…
user3751548
  • 115
  • 11
1
vote
1 answer

How do i add toolbar for android in xamarin,forms as ToolbarItem is not working for .droid?

I want to have a toolbar for my mobile application in xamarin.forms. I surfed throught the net and got to know about toolbaritems but i think it just works for the windows phone not for android. Any help regarding this issue would is heartly…
AQhtar Ali
  • 51
  • 2
  • 11
1
vote
1 answer

Is it possible to add, delete or hide buttons on a toolbar after the view has loaded?

I am trying to alter the visible buttons on the toolbar depending on the state of the table view. Is this possible? To add more detail: I currently have a list of exercises in a table view. There is a toolbar at the bottom with a button on it "new"…
sam_smith
  • 6,023
  • 3
  • 43
  • 60
1
vote
1 answer

How to make a UIToolbar with steps, arrow style

It's hard to explain what i'm searching for, and not even sure if Apple will allow it (because of the guideline for human interface design), but is it possible to make a step by step "progress" bar in a UIToolbar? The image below will explain a lot.…
Erik Terwan
  • 2,710
  • 19
  • 28
1
vote
2 answers

Want to change image bar button item's image

I have created a AVFoundation Camera,now i want to change toolbar item image to my custom image , when user tap record camera button than image will change. I have done that change but problem is that my image display black and white no color.soplz…
user1541029
1
vote
1 answer

Add custom image to toolbar in iPad application

I have looked around quite a bit and can't seem to get working a custom image in my toolbar. I have the code below in the custom initialization section of my ViewController.m, is this the correct place to add this? I don't see any image show in…
brianhevans
  • 1,183
  • 4
  • 15
  • 28
0
votes
1 answer

Position a UIBarButtonItem in a UIToolBar with PhoneGap

I'm using PhoneGap 1.3 and am trying to create an iOS add button on the right side of my toolbar; however, the createToolBarItem method does not have any option to set the position of the item. How can I do this? Here is a snippet of code from…
sadmicrowave
  • 39,964
  • 34
  • 108
  • 180
0
votes
1 answer

How to disable UIToolbar flexible space item clicks

I have a UIToolBar with some button items on it separated by a flexible space item. Depending on the state of the app, some buttons are enabled or disabled. And when this happens, when the disabled button is clicked, instead of doing nothing, it…
htafoya
  • 18,261
  • 11
  • 80
  • 104
0
votes
2 answers

How to program UItoolbar buttons to load a new website in UIWebView?

I am working on an IPhone app and i have a UIWebview that by default loads a url. I need to create a UIToolbar with three buttons under UIWebview which will allow users to hit the buttons and load a new url in UIWebview?
Sina
  • 3
  • 1