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 modify my … Read more
I’m building an app using swift in the latest version of Xcode 6, and would like to know how I can modify my … Read more
At some point in my app I have a highlighted UIButton (for example when a user has his finger on the button) and … Read more
How do I programmatically create graphical elements (like a UIButton) in Swift? I tried to create and add button into a view, but … Read more
I would like to place an icon left of the two lines of text such that there’s about 2-3 pixels of space between … Read more
I noticed that when I place a white or black UIImage into a UISegmentedControl it automatically color masks it to match the tint … Read more
I have added multiple target-action-forControlEvents: to a UIButton. I’d like to remove all of these in one go without deallocating anything. I will … Read more
I don’t want to use a subview if I can avoid it. I want a UIButton with a background image, text, and an … Read more
I have the following code… UILabel *buttonLabel = [[UILabel alloc] initWithFrame:targetButton.bounds]; buttonLabel.text = @”Long text string”; [targetButton addSubview:buttonLabel]; [targetButton bringSubviewToFront:buttonLabel]; …the idea being … Read more
I need to set the font size of the title UILabel of a UIButton programmatically. 19 Answers 19
I need to display an email address on the left side of a UIButton, but it is being positioned to the centre. Is … Read more