uitoolbar Questions

5

Is it possible to adjust the title of a UIBarButtonItem inside an UIToolbar? I've tried the following lines of code without success: UIBarButtonItem.appearance().setTitlePositionAdjustment(UIOff...
Masurium asked 8/5, 2015 at 12:47

6

Solved

I need to add a toolbar with done button on the top of UIPickerView. I don't want to use actionSheet because I want the rest of the view to be active. I've gone for the following code: - (BOOL)tex...
Noll asked 4/12, 2012 at 10:15

7

What's the easiest way to determine the x,y location of a UIBarButtonItem in a UIToolbar? The only answer I found is in any way to know where uibarbuttonitem has been drawn. All proposed answer...
Nb asked 22/11, 2011 at 18:21

5

Solved

I'm trying to add a UIBarButtonItem containing a UIImage to a UIToolbar. The image keeps being tinted and I can't get it to show as the original colored image - all I want to do is display an image...
Muna asked 15/10, 2013 at 2:18

5

Solved

I'm trying to add a custom UIToolBar to all of my keyboards with as little repetition. The way I'm currently doing it requires me to add the code to all my viewDidLoads and assign every textfield's...
Disannul asked 22/6, 2015 at 15:8

1

I'm testing a simple UIToolbar, with two UIBarButtonItem as items, one built using initWithCustomView: method, the other one using initWithTitle:style:target:action: method. The second button cand...
Router asked 17/10, 2017 at 18:14

5

Solved

What I'm trying to do is to create something similar to the "find on page" search function in Safari on iPad. I'm using a UIToolbar with some items in it and attached it to the keyboard by setting...
Wearisome asked 26/5, 2012 at 18:14

4

I am trying to animate a UIToolbar's tintColor property, to change it from one tintColor to another. Here is the code I am trying. Unfortunately, the change occurs immediately and does not fade f...
Siltstone asked 20/12, 2010 at 23:49

5

When I add a UIToolBar, it appears to be transparent. However, I do not want this to happen. Here is my code: var done = UIBarButtonItem(barButtonSystemItem: UIBarButtonSystemItem.Done, target: s...
Maidamaidan asked 3/7, 2015 at 6:47

1

I have an app that does all UI programmatically without using auto layout or any sort of constraints. At the bottom of the screen is a UIToolbar. I am trying to lay this out to play well with the i...
Narbonne asked 26/11, 2017 at 9:41

1

I want to add a UITextField to a UITooolbar and let the UITextField expand its width as needed to fill the area, like a UIBarButtonSystemItemFlexibleSpace does. Below is a snippet about how i norm...
Seligmann asked 1/10, 2017 at 22:40

3

Solved

In my application, I use some code, to dynamically add buttons with images to a UIToolbar: [self.navigationController setToolbarHidden:NO]; UIImage *buttonImage1 = [UIImage imageNamed:@"1.png"]; U...
Increase asked 15/4, 2013 at 18:32

1

So after my long search via google and SO, I have not found a similar issue. Some came close but not like mine. Issue at hand: In my app (WKWebView based) if the keyboard is shown, and I double ta...
Hydroponics asked 9/2, 2017 at 0:35

10

Solved

I've got an UIToolbar in Interface Builder and I've noticed that it's locked to being 44px tall. Of course I'd like to make this larger. Does Apple allow resizing of this control? If so, how do I ...
Orthopedics asked 25/1, 2010 at 20:31

1

Up to iOS 10, an UIToolbar with flexible space bar buttom items between its items would automatically reduce the font so that all text get displayed on the screen. Sample below (iOS 10): Ever si...
Albumin asked 25/10, 2017 at 17:52

6

Solved

I have a UIToolbar with the alpha set to .6. Looks great - but it leaves the buttons with an alpha of .6 as well, which is okay but not really desirable. Is there some way to independently set the ...
Dyann asked 14/2, 2011 at 20:29

4

Solved

How to add a separator between buttons in a UIToolbar? Sample image is shown in the below link
Craniology asked 7/2, 2012 at 17:5

6

Solved

I have a UIToolBar button declared below: UIToolbar *toolbar = [[UIToolbar alloc] init]; toolbar.frame = CGRectMake(0.0, 0.0, self.view.frame.size.width, 64.0); I also have a UIBarButtonItem tha...
Savill asked 21/10, 2013 at 8:14

3

I have a UIView and I have a UIToolbar and UIWebView. I want to show toolbar at top of UIView and after that the rest of page covered with webView. But toolbar goes under status bar like this How...
Paedogenesis asked 7/12, 2013 at 13:45

4

Solved

I'm trying to implement UIToolbar on UIDatepicker to dismiss it when touching "Done" button. But when I tap on the button, the datepicker is scrolling and the action button doesn't work. Here is m...
Stereoscopic asked 19/6, 2015 at 7:12

4

I have a toolbar with the code below; I would like to add an image that displays with "Tools" Called "toolsIcon.png". Below is my code: //BottomBar UIToolbar *toolbar = [[UIToolbar alloc] ini...
Pinnatifid asked 12/4, 2015 at 20:14

2

Solved

I tried this to add UITextField to a UIToolbar but got a run-time error with reason as: [UITextField view]: unrecognized selector sent to instance ... [toolbar setItems:[NSArray arrayWithObjects:t...
Trusting asked 7/8, 2011 at 18:40

4

Solved

I have created a UIToolbar. I am trying to give it black color using: toolbar.barStyle = UIBarStyleBlackOpaque; or toolbar's background property. But its color does not change in either case. ...
Bobbyebobbysocks asked 7/4, 2011 at 13:12

2

Solved

There are a number of questions regarding the height of UIToolbar, but I don't see one where the height is obtained dynamically. Is there a way to create a UIToolbar with the correct default height...
Sjoberg asked 17/3, 2016 at 8:29

6

Solved

I want to know how to implement an animation which hiding the tab bar when dragging downward, like Safari app on iOS 7. Any information from you will be appreciated. Similar question: Show/hide UI...
Inunction asked 16/11, 2013 at 3:35

© 2022 - 2024 — McMap. All rights reserved.