Reputation:
The default UIButton round rectangle is that dark blue. I want my cell's text in a table to match this blue color.
I am using this code but the only blue I can find is a bright blue...
cell.textLabel.textColor = [UIColor blueColor];
Upvotes: 25
Views: 17094
Reputation: 3370
The system button text color for iOS 7 and above is:
Swift:
UIColor(red: 0, green: 0.478431, blue: 1, alpha: 1)
Objective-C:
[UIColor colorWithRed:0 green:0.478431 blue:1 alpha:1]
Upvotes: 36
Reputation: 3095
The color in iOS6 is:
[UIColor colorWithRed:0.22 green:0.33 blue:0.53 alpha:1.0]
Upvotes: 4
Reputation: 6402
Use this code to set the color using RGB value
cell.textLabel.textColor = [UIColor colorWithRed:.196 green:0.3098 blue:0.52 alpha:1.0];
Upvotes: 18