I am currently trying the Core Graphics 101: Glossy Buttons by RAYWENDERLICH, but I am having a problem using it in my project, i don’t know to apply this programmatically, and adjust its image programmatically.
Here is my button:
@interface CoolButtonViewController : UIViewController {
CoolButton *_button;
}
@property (retain) IBOutlet CoolButton *button;
@implementation CoolButtonViewController
@synthesize button = _button;
How to edit the color of the image programmatically, not by slider.
Looks like it is as simple as setting the button’s hue, saturation, and brightness properties to whatever values you want. (The values for these properties can range from 0.0 to 1.0)