Top "Uibutton" questions

UIButton is a subclass of UIView for displaying buttons in iOS.

Aligning text and image on UIButton with imageEdgeInsets and titleEdgeInsets

I would like to place an icon left of the two lines of text such that there's about 2-3 pixels …

iphone ios uibutton uikit
How to set the title of UIButton as left alignment?

I need to display the email address from left side of a UIButton, but it is being positioned in the …

objective-c uibutton
How to round the corners of a button

I have a rectangle image (jpg) and want to use it to fill the background of a button with rounded …

ios cocoa-touch uibutton rounded-corners
How do you add an action to a button programmatically in xcode

I know how to add an IBAction to a button by dragging from the interface builder, but I want to …

ios iphone objective-c uibutton programmatically-created
How do you add multi-line text to a UIButton?

I have the following code... UILabel *buttonLabel = [[UILabel alloc] initWithFrame:targetButton.bounds]; buttonLabel.text = @"Long text string"; [targetButton addSubview:buttonLabel]; […

ios cocoa-touch uibutton uikit
How to change font of UIButton with Swift

I am trying to change the font of a UIButton using Swift... myButton.font = UIFont(name: "...", 10) However .font is deprecated …

ios uibutton swift uifont
Color Tint UIButton Image

I noticed that when I place a white or black UIImage into a UISegmentedControl it automatically color masks it to …

ios iphone uibutton ios7 uisegmentedcontrol
How do I put the image on the right side of the text in a UIButton?

I don't want to use a subview if I can avoid it. I want a UIButton with a background image, …

ios user-interface layout uibutton
How can I change UIButton title color?

I create a button programmatically.......... button = [UIButton buttonWithType:UIButtonTypeRoundedRect]; [button addTarget:self action:@selector(aMethod:) forControlEvents:UIControlEventTouchDown]; [button setTitle:@"Show …

ios objective-c iphone uibutton
How to adjust an UIButton's imageSize?

How can I adjust the image size of the UIButton? I am setting the image like this: [myLikesButton setImage:[UIImage …

ios objective-c xcode uibutton