In IOS 7, in my xib files if I set a button type to UIButtonTypeSystem, I can change the button tint color to whatever I want.
Can I do this programmatically? I can't seem to, I've tried the same image on xib and it works fine.
This is what I'm doing:
//Date picker button
self.dateButton=[UIButton buttonWithType:UIButtonTypeSystem];
self.dateButton.frame=CGRectMake(x, y, 30, 30);
self.dateButton.tintColor = [UIColor colorWithRed:91.0/255.0 green:146.0/255.0 blue:213.0/255.0 alpha:1.0];
[self.dateButton setBackgroundImage:[UIImage imageNamed:@"calendarButton.png"] forState:UIControlStateNormal];