How can I get the iOS 7 default blue color programmatically? How can I get the iOS 7 default blue color programmatically? ios ios

How can I get the iOS 7 default blue color programmatically?


Use self.view.tintColor from a view controller, or self.tintColor from a UIView subclass.


It appears to be [UIColor colorWithRed:0.0 green:122.0/255.0 blue:1.0 alpha:1.0].

screenshot showing Colors window


iOS 7 default blue color is R:0.0 G:122.0 B:255.0

UIColor *ios7BlueColor = [UIColor colorWithRed:0.0 green:122.0/255.0 blue:1.0 alpha:1.0];