Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Text Color to Match Default UIButton Color [Blue]

Tags:

iphone

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];

1 Answers

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]
like image 54
apb Avatar answered Sep 13 '25 05:09

apb