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
-1
votes
2 answers

Create toolbar for quiz app

This is related to a question i posted earlier.I am still stuck on it.Heres a description.I am creating a quiz app.It has a toolbar whose buttons are to be created dynamicaly each time the user clicks a button.I did it using a method which adds…
humblePilgrim
  • 1,818
  • 4
  • 25
  • 47
-1
votes
1 answer

Insert UIView into UIToolbar

I'd like to insert an UIView into an UIToolbar. (see Picture) I've already tried .addSubview but it doesn't work. Thanks for any help you can provide! // Toolbar -> Done Butotn let toolbar = UIToolbar() toolbar.sizeToFit() let…
N. Beer
  • 109
  • 1
  • 10
-1
votes
3 answers

iOS: UIBarButton Proper Size

In my iOS application on UIToolbar I have added "Done" custom button with image. UIBarButtonItem *btnNextDoneDisable; UIToolbar *navigateQuestionBar; //*to add button UIImage *img_done = [UIImage…
User_1191
  • 981
  • 2
  • 8
  • 24
-1
votes
1 answer

does iOS automatically relayout UIBarButtonItems on a UIToolbar on a rotation?

In Storyboard, I have a UIToolbar on a UIViewController. The UIBarButtonItems are: Left Button / Flexible Button / Nutton 2 / Button 3 / Button 4 On App start the buttons are correctly spaced on the UIToolbar with Left button left-most and Button…
Carl
  • 2,896
  • 2
  • 32
  • 50
-1
votes
1 answer

Can I dock UIToolbar on UIPickerview like docked on Keyboard

I have created a custom uitoolbar, containing buttons B1,B2 and textview. Toolbar scrolls up and down as per keyboard movement on screen. [Docked on keyboard using]: -(BOOL)canBecomeFirstResponder { return YES; } - (UIView…
nikdange_me
  • 2,949
  • 2
  • 16
  • 24
-1
votes
1 answer

Add a button to the native toolbar

I have the following code final class MyViewController: UIViewController, UICollectionViewDataSource, UICollectionViewDelegate, /*..*/ { // // Declaring local variables, other controllers and delegates etc. // override func…
mansonitefirefox
  • 157
  • 1
  • 4
  • 19
-1
votes
1 answer

iOS: UIToolbar or UIView for keyboard in swift

I am creating a UIView or a UIToolbar for my keyboard when I select a textfield. For example something like that in my viewDidLoad: let customView = UIView(frame: CGRectMake(0, 0, self.view.frame.size.width, 40)) customView.backgroundColor =…
cyclingIsBetter
  • 17,447
  • 50
  • 156
  • 241
-1
votes
1 answer

UIToolbar not positioned at the bottom on device but appears ok in storyboard

I'm testing the new universal storyboard in XCode 6. I basically created a view with a toolbar positioned at the bottom. When I run that basic example in the iPad the toolbar is not at the bottom And here is in the storyboard How can I place the…
SERPRO
  • 10,015
  • 8
  • 46
  • 63
-1
votes
1 answer

Swift UIToolbar positioning

I have a UIToolbar, but I have no idea how to positioning it.. I would add UIBarButtonItems to it, and positioning them. The toolbar showing up, but i can't change it size, and i can't position the buttons in it. override func…
solarenqu
  • 804
  • 4
  • 19
  • 44
-1
votes
1 answer

Is there any possible that make a toolbar on google map?

I have try to add a UItoolbar on the google map, but the map is cover the toolbar. Even i add the map view to be a subview, the map view will show nothing. Is it impossible that make a toolbar on google map? Additional information: This view…
Jacky Shek
  • 953
  • 1
  • 11
  • 35
-1
votes
1 answer

Can you keep an element from moving when switching views besides a NavigationBar?

I am trying to have a UINavigation controller with a title view the logo for the app, and a UISegmentedControl below it, however, it is too tall to fit in the Navigation bar. Is there any way to have a toolbar with a UISegmentedControl that is…
-1
votes
2 answers

Adding borders to button in numberpad & add + sign on empty space

So I have been looking around and trying different codes and I cant really achieve what I want. I hope to find what I seek here. I am trying to make a custom number pad. This is the result I want: But this is as close I get. First problem is that…
Timo Cengiz
  • 3,367
  • 4
  • 23
  • 45
-1
votes
1 answer

How do I add an clear/redo button in a UIToolBar?

I have a "Clear" button. It clears 2 text fields back to being empty. When the user clicks the "Clear" button once, I want it to change or become another button that adds back what it cleared. Like a "Redo" button. How can I go about doing this? So…
Hedylove
  • 1,724
  • 16
  • 26
-1
votes
1 answer

Done button on UIToolBar does not operate - iOS

I am trying to create a picker with bar that has done button. I tried to implement as follows; viewForDatePicker = [[UIView alloc]initWithFrame:CGRectMake(0, 300, 320, 266)]; [viewForDatePicker setBackgroundColor:[UIColor whiteColor]]; UIToolbar…
erdemgc
  • 11
  • 6
-1
votes
1 answer

IOS Toolbarbutton item not triggering action with scroll bar

I have done code for Scrollview(8images) + Toolbar as well. When I try to click the toolbar button item the scrollview is not turned back as expected. below is the code. When I click Toolbar button, no action triggered to "IBAction clickprjinfo", I…
rajar
  • 53
  • 4
1 2 3
85
86