Top "Uibutton" questions

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

How do I create a basic UIButton programmatically?

How can I create a basic UIButton programmatically? For example in my view controller, when executing the viewDidLoad method, three …

objective-c uibutton programmatically-created
How to create a button programmatically?

How do I programmatically create graphical elements (like a UIButton) in Swift? I tried to create and add button into …

ios swift uibutton
Set UIButton title UILabel font size programmatically

I need to set the font size of the title UILabel of a UIButton programmatically.

objective-c cocoa-touch ios uibutton font-size
How can I make a button have a rounded border in Swift?

I'm building an app using swift in the latest version of Xcode 6, and would like to know how I can …

swift uibutton
How to change the background color of a UIButton while it's highlighted?

At some point in my app I have a highlighted UIButton (for example when a user has his finger on …

ios objective-c xcode uibutton
Setting an image for a UIButton in code

How do you set the image for a UIButton in code? I have this: UIButton *btnTwo = [UIButton buttonWithType:UIButtonTypeRoundedRect]; btnTwo.…

ios objective-c iphone ipad uibutton
Make a UIButton programmatically in Swift

I am trying to build UI's programmatically. How do I get this action working? I am developing with Swift. Code …

ios uibutton swift
Changing text of UIButton programmatically swift

Simple question here. I have a UIButton, currencySelector, and I want to programmatically change the text. Here's what I have: …

ios xcode swift uibutton
How to change UIButton image in Swift

I am trying to change the image of a UIButton using Swift... What should I do This is OBJ-C code.…

ios xcode swift uibutton
Get button click inside UITableViewCell

I have a view controller with a table view and a separate nib for the table cell template. The cell …

ios objective-c uitableview uibutton