I need to animate the change of the value of a UILabel and a UIButton's image property. I currently use two UIView.transition blocks which seem to work fine, bu
I have UIButton, which title is dynamic changes. Button size should changes with title size and will be equal title size. How to do this programmatically in Sw
I've been trying to run an animation that rotates my UIButton 360 degrees using this code: UIView.animateWithDuration(3.0, animations: { self.vineTimeCapButt
When create UIButton with auto layout, the intrinsicContentSize always contain different top/bottom padding according to different text font size. I try to set
I am trying to change the font of a UIButton using Swift... myButton.font = UIFont(name: "...", 10) However .font is deprecated and I'm not sure how to chang
I am trying to build UIs programmatically with Swift. How can I get this action working? override func viewDidLoad() { super.viewDidLoad() // Do any add
So I have the following code which executes upon tapping one side or another of my segmented control: @IBAction func logInOrSignUpIndexChanged(_ sender: UISegme
Part way done with learning swift but I hit a small wall and yet again, I'm sure I'm just a bit new at this and an easy solution is there but I'm having trouble
I am doing a contact us page. Here I want to add a email link and also I want to open the iPhone's default mail app while clicking that link. I don't know how t
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 titleL
I have a UIButton built in Interface Builder that has a default label. In Xcode, I'm changing the label text dynamically like so: myButton.titleLabel.text = @"