Questions tagged [uitoolbaritem]

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

69 questions
0
votes
1 answer

Using a standard toolbar or ios navigation bar icon

I see the documentation here: https://developer.apple.com/library/ios/documentation/UserExperience/Conceptual/MobileHIG/BarIcons.html But is there anyway to get the icon by itself? Where is an example of this? Thanks.
cdub
  • 24,555
  • 57
  • 174
  • 303
0
votes
1 answer

UIToolBar not displaying

I'm trying to build an app that has a webview with a top UIToolBar. This app is meant for internal use at our company and I was tasked with building this. This particular webview comes up if a user wants to read the FAQ, which are loaded from our…
user4334509
  • 125
  • 2
  • 10
0
votes
1 answer

buttons in Toolbar are not visible in storyboard (xcode6)

I have a toolBar with uiButtonItem and some flexible/fixed space item in my storyBoard. with xcode6 they are no more visible, I can still see the edge when switching between buttons in view inspector but they are not visible. I tried to change…
Idali
  • 1,023
  • 7
  • 10
0
votes
2 answers

TapGestureRecognizer on UIToolbarButton doesn't work

I have a UIToolbarButton which has a UIButton to hold the image. Now, when I click on this UIToolbarButton, I want to open another view in the current view. My Code : - (IBAction)btnNowPlaying:(id)sender { UITapGestureRecognizer *tap =…
Vaibhav Jhaveri
  • 1,579
  • 3
  • 28
  • 53
0
votes
1 answer

cannot change uitoolbarbuttonitem color

func barButtonSelected(button:UIBarButtonItem){ for vi in topNav!.items { vi.tintColor = UIColor.redColor() } button.tintColor = UIColor(hex: "FF0000") } the func is UIBarButtonItem'action,I can change the tintcolor of the…
six
  • 115
  • 1
  • 1
  • 7
0
votes
1 answer

Conflicting UIBarbuttonItem's tintcolor and image

I have a UIToolbar in one of my VCs, it has 3 color buttons which changes the color of my drawing. Anyways I want to change the button's image when its selected. The images are shown below, the problem is apparently the button's "tintcolor" is…
Mepla
  • 438
  • 4
  • 16
0
votes
0 answers

iPhone-only app UIToolbar behaves differently when run on iPad

I'm puzzed. The UIToolbar in my iPhone-only app behaves differently when run on an iPad. On the iPhone I get the desired result (UIToolbar is visible), the same app run on the iPad doesn't show the UIToolbar at all. I assume I'd doing something…
ToddB
  • 2,490
  • 3
  • 23
  • 40
0
votes
1 answer

Adding UITextField to UIToolbar does not work

I am trying to add a UITextField to UIToolbar on my UINavigationView but it does not appear on the toolbar. The code is very simple. Here's what it looks like: - (void)viewDidLoad { [super viewDidLoad]; …
Vlad
  • 8,038
  • 14
  • 60
  • 92
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
2 answers

ToolBar back button is not working

Iam doing one project using storyboard ,in one viewcontroller i have a button.When i clicked that it will move to next viewcontroller but its a separate xib file. Now i tried to add aback button to that xib file So i can move back to my storyboard…
Naveen
  • 1,251
  • 9
  • 20
  • 38
0
votes
1 answer

Adding UIBarButtonItem's to a UIToolbar

I need to add buttons to the UIToolbar of a UINavigationController, which is also my root. I want the UIToolbar to appear when a specific UIViewController is shown. Therefore, I placed this code in my viewDidLoad method of my UIViewController…
Luca Carlon
  • 9,546
  • 13
  • 59
  • 91
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

Position UIBarbuttonItem to the VERY left

I have a UIBarButtonItem that I want hugging the very left of the screen. I've tried putting a fixed barbutton with width=0 before the button and other configurations but there's always several pixels between the button and x=0. I've also tried…
Andrew Park
  • 1,489
  • 1
  • 17
  • 26
0
votes
1 answer

iOS UIToolbar items array

I have a UIToolbar that has two buttons, two flexible margins and a segment control within it. I have it set up so that when the user selects the refresh button, the button is hidden, a activity indicator takes its place, and once the operation is…
Jon Erickson
  • 1,876
  • 4
  • 30
  • 73
0
votes
1 answer

how to show value on button of toolbar in objective-c?

I am doing project of bill. there are many bills that i can scroll and each bill have many items with quantity and price. At the button, there are also many buttons on toolbar. Total Price of bill is 1 button among them, and i don't know how to show…
user1584341