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

Joel H.

I'm creating custom elements in my app and want to match the look and feel of the new iOS. iOS 7 introduced to us a very common lighter blue color, the default color or tint for several elements, including the system button, segmented control, etc. They've made it easy to select the color using IB, as seen here:

enter image description here

However, I haven't found how to easily access the color programmatically. I checked out the UIColor documentation, and there doesn't seem to be any accessor for the blue system color in the class itself.

Here's my question: does a simple accessor exist for this color? [UIColor ?] or something like it? If not, does someone know the exact RGB values for that color?

Aaron Brager

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

Collected from the Internet

Please contact [email protected] to delete if infringement.

edited at
0

Comments

0 comments
Login to comment

Related

Xamarin.Forms how to change default blue color on ios

how to change default color when switch is "on"(blue to green) in forms xamarin. In ios default it is GReen but in android it is blue

How can I change the background color of a UIBarButtonItem on iOS 7+?

How to get rid of the default blue color on hover over a button?

How do I make the color of UIBarButtonItems for MFMailComposeViewController from the default blue?

How can I change shape color programmatically?

GMSAutocompleteViewController iOS, How can I get different color for text in searchControllers?

How can i find programmatically iPhone device connected 3G network or Wifi in iOS7

How can I change the color of this blue text on my command line?

How can I brighten up blue directories in ls --color?

How can I deselect a default printer in Windows 7 and get back to no printer selected as default?

How can I programmatically get this layout in tmux?

Can i change default color scheme in classic theme windows 7?

How can I programmatically get the list of frameworks and libraries included in an ios project?

How can I change the summary text color of a Preference programmatically?

How Can I Define a Custom Color That Is Available Both Programmatically And In IB?

how can I set static controls background color programmatically

How can I do programmatically gradient border color UIButton with Swift

How can I programmatically edit TextField's border color in SwiftUI?

How can I programmatically determine the default value of a function parameter?

How can I pin a default live tile programmatically?

How can i open default Files app with myapp folder programmatically?

How to get accent color programmatically?

How do I change the color of theses links in CSS from the default blue?

How can I get this kind of Color Picker View in my iOS app?

how can i Get proportional gray color?

How Can I Get The Value Of The Components That I Created Programmatically?

How can I get the default ControlTemplate of DataGridTextColumn?

How can I programmatically set the vertical alignment of a UIButton - iOS

TOP Ranking

HotTag

Archive