uibutton Questions
4
I have a UIButton. I want to set the gradient of button as below.
I have tried below code but it does not set the color as per screenshot.
func applyGradient(colours: [UIColor]) -> Void {
...
4
Solved
When I'm clicking button I'm getting this exception.I don't know where I'm doing wrong Someone help me .my app is rejected because of this exception
my code:
UILabel *rememberMeLabelObj = [[UILab...
5
Solved
I want to remove a UIButton's image and replace it with a title at runtime. Although I am able to add the title to the UIButton, I am unable to remove the image. Does anyone have some advice?
Seng asked 2/3, 2011 at 17:28
14
Solved
In the detailViewController of a UISplitView I have subviews added to a UIStackView inside a UIScrollView.
Just using system buttons without subviews or images, results in responsive buttons, but ...
Haler asked 26/8, 2016 at 13:19
7
When create UIButton with auto layout, the intrinsicContentSize always contain different top/bottom padding according to different text font size. I try to set contentEdgeInsets, but it not really ...
Zinn asked 7/8, 2015 at 8:29
23
Solved
I am trying to build UIs programmatically with Swift.
How can I get this action working?
override func viewDidLoad() {
super.viewDidLoad()
// Do any additional setup after loading the view, typic...
6
Solved
I can't get a border onto my buttons in Xcode 5 without setting them directly in the code. Is it possible that there's no way to do this on the storyboard without making a custom background image? ...
Rhyolite asked 9/12, 2013 at 18:33
15
Solved
I'm trying to create a button with rounded corners and a drop shadow. No matter how I switch up, the button will not display correctly. I've tried masksToBounds = false and masksToBounds = true, bu...
Oldwife asked 9/7, 2014 at 3:11
5
i have horizontal UIScrollView which is extended from UIScrollView and i added UIButtons horizontally. i can only scroll out of the buttons area, but if i want to scroll over any buttons is fires U...
Cruces asked 17/9, 2010 at 8:41
4
Solved
I am declaring a Button like this :
let menuButton = UIButton()
After that I am trying to change it's parameter and set his position on the view with the help of LBTATools (a pod) with this func...
Erasme asked 11/3, 2020 at 16:57
3
Solved
I'm working with a designer and we have a few different typefaces involved in the project, sometimes doing everything in all caps, sometimes all lower case. This applies to both my labels and butto...
9
Solved
I am subclassing the UIButton, what i want is to set the button type to Round Rect.
Button.h
@interface Button : UIButton {}
- (void)initialize;
@end
Button.m
@implementation Button
- (id)in...
9
Solved
How to disable button highlight effect on click? Have custom button with white bg color and DarkGray text color. The problem is the text becomes white on button click. Already tried but none of the...
Reconcile asked 8/7, 2013 at 13:50
14
Solved
I am looking for a solution to this problem that does NOT require using images/PNGs. I am looking for a way to remove the UIButton's blue background color when it's in selected state, and I just ca...
Sundial asked 9/1, 2012 at 15:13
4
Solved
I have a UIButton on a form, and want to put it in a disabled state when the form is incomplete. However, I still want to be able to detect if a user attempts to press the button even in its disabl...
Adonai asked 9/9, 2014 at 22:11
2
Solved
I have a button with a)Image and b)Background Image - all built in a storyboard. The image is popping out of button as background image has a different shape. I want to give the actual image (a) so...
13
Solved
Simple question here. I have a UIButton, currencySelector, and I want to programmatically change the text. Here's what I have:
currencySelector.text = "foobar"
Xcode gives me the error "Expected...
8
In currently working with iOS 7 and I an attempting to increase the font size of the titleLabel of my UIButton. I am doing it like this,
[[_centerButton titleLabel] setFont:[UIFont boldSystemFontO...
Gev asked 12/10, 2013 at 22:44
12
Solved
I would like to change the content of a UIButton to an ActivityIndicator after it is pressed.
I know buttons have an imageView and a titleLabel, but I don't know how to put an activity indicator i...
8
Solved
Still learning Swift and don't know Objective-C. I saw that in order to changing a button's text programmatically requires the use of titleEdgeInsets but I am not really sure how to use it.
I woul...
7
Solved
I am having a trouble adding left padding on a UIButton. I have a UIButton with UIControlContentHorizontalAlignmentLeft. I want the text to be displayed on the left side but it is too left. when I ...
Illegality asked 14/5, 2012 at 18:40
18
Solved
I know this issue is already been asked few times in SO. Despite trying those out, I am still unable to solve my problem.
I am using a UITableView inside a UIViewController. I have a custom UITab...
Lanneret asked 12/2, 2016 at 8:0
6
How to Add floating button as Facebook's App Rooms using the storyboard?
I can't drag UIView on the tableview that's the only way I know.
Midgett asked 30/7, 2015 at 13:46
22
Solved
I noticed that when I place a white or black UIImage into a UISegmentedControl it automatically color masks it to match the tint of the segmented control. I thought this was really cool, and was wo...
Wikiup asked 7/11, 2013 at 6:26
32
Solved
At some point in my app I have a highlighted UIButton (for example when a user has his finger on the button) and I need to change the background color while the button is highlighted (so while the ...
Splendent asked 25/1, 2013 at 14:4
1 Next >
© 2022 - 2024 — McMap. All rights reserved.