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
1 answer

How UIToolbarPosition is handled by UIToolbar?

I'm using setBackgroundImage:forToolbarPosition:metrics: method of UIToolbar. That's my code: toolbar = [[UIToolbar alloc] initWithFrame:CGRectMake(0,0, 320, 44)]; [toolbar setBackgroundImage:[UIImage imageNamed:@"top"]…
danielemm
  • 1,636
  • 1
  • 14
  • 24
-1
votes
2 answers

Pop view controller off stack without a navigation bar shown?

I've hidden the navigation bar so I can have a custom UIToolBar up there, but when I set the action property for the toolbar item to a method that pops it, it won't work, and I think it may be because I hid the navigation bar. Here's my…
Doug Smith
  • 29,668
  • 57
  • 204
  • 388
-1
votes
1 answer

How to add UISegmentedControl in toolbar on iPad programmatically

I have some weird problem adding UISegmentedControl in toolbar on iPad. I have created a UINavigationController with the root controller which has the following methods: - (void)viewWillAppear:(BOOL)animated { [super viewWillAppear:animated]; …
voromax
  • 3,369
  • 2
  • 30
  • 53
-1
votes
2 answers

Custom UIToolbar button doesn't work

There is a bar button item in my xib file. .h: @property (nonatomic, retain) IBOutlet UIBarButtonItem *toolbarButton; .m: UIButton *aboutToolbarButton = [UIButton buttonWithType:UIButtonTypeCustom]; [aboutToolbarButton…
jxdwinter
  • 2,339
  • 6
  • 36
  • 56
-1
votes
1 answer

UIToolbar doesn't show up after it's being hidden

I got a UIButton which makes the UIToolbar show and hide. - (IBAction)showHideToolbar:(id)sender{ if (toolBar.hidden == NO) { [UIView animateWithDuration:0.25 delay:0.0 options:UIViewAnimationCurveLinear |…
Phillip
  • 4,276
  • 7
  • 42
  • 74
-2
votes
1 answer

Customize Bar button Item in Swift

I am very new to coding and I have been watching a numerous youtube videos on how to customize (adding my own image) to the bar button item on a toolbar and none of the ways seem to be working. Could someone please help or point me to the right…
AP.fix
  • 37
  • 1
  • 7
-2
votes
3 answers

How to add a custom action for a UIBarButtonItem in the StoryBoard?

I want to have a couple of buttons in my iOS app at the bottom of the screen and so used a UIToolBar and added a couple of Bar Button Items to it. But I realized that these BarButtonItems are not considered to be regular buttons. So I am not able to…
user220201
  • 4,514
  • 6
  • 49
  • 69
-2
votes
2 answers

UIView as a Bottom ToolBar in UIViewController

I want to use A View as a Bottom ToolBar. How can I implement this idea . Anyone have any suggestion or any demo? Screen shot of my view where i want this toolbar
Subhash Sharma
  • 745
  • 6
  • 24
-2
votes
2 answers

UIToolbar creation

i have created a toolbar as below shown code and now i dont knw how to add the items to it. - (void)viewDidLoad { [super viewDidLoad]; UIToolbar *toolbar = [[UIToolbar alloc] init]; toolbar.frame = CGRectMake(0, 418, 350, 44); …
reddy
  • 13
  • 10
-2
votes
1 answer

How can we add an image in Toolbar repeatedly?

Please any one can give an idea for an image adding repeatedly in X axis. Thanks in advance
iPC
  • 5,916
  • 3
  • 26
  • 38
1 2 3
85
86