Top "Uibutton" questions

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

UIButton: set image for selected-highlighted state

I set an images for button's states Normal,Highlighted and Selected, but when the button in selected state and I …

iphone cocoa-touch image uibutton selected
UIButton title text color

I'm setting text color for UIButton headingButton.titleLabel.textColor = [UIColor colorWithRed:36/255.0 green:71/255.0 blue:113/255.0 alpha:1.0]; It's not changing color same code …

ios objective-c iphone uibutton textcolor
scale Image in an UIButton to AspectFit?

I want to add an image to a UIButton, and also want to scale my image to fit with the …

ios objective-c cocoa-touch uibutton uikit
How to make a simple rounded button in Storyboard?

I just started learning iOS development, cannot find how to make simple rounded button. I find resources for old versions. …

ios xcode uibutton storyboard
Change button background color using swift language

I am new to the swift language. Can someone tell me how to change the background color of a button …

ios iphone colors uibutton swift
Best radio-button implementation for IOS

I would like to ask if there are examples out there on how to implement radio-button options on an iPhone …

iphone cocoa-touch ios uibutton radio-button
Disable a Button

I want to disable a button (UIButton) on iOS after it is clicked. I am new to developing for iOS …

swift uibutton ios8
how to programmatically fake a touch event to a UIButton?

I'm writing some unit tests and, because of the nature of this particular app, it's important that I get as …

ios iphone uibutton touch-event
Disabled UIButton not faded or grey

In my iPhone app, I have a UIButton which I have created in Interface Builder. I can successfully enable and …

ios iphone cocoa-touch uibutton
Creating a UIImage from a UIColor to use as a background image for UIButton

I'm creating a colored image like this: CGRect rect = CGRectMake(0, 0, 1, 1); UIGraphicsBeginImageContext(rect.size); CGContextRef context = UIGraphicsGetCurrentContext(); CGContextSetFillColorWithColor(context, [[UIColor redColor] …

ios objective-c uibutton uiimage