Get Updates By E-mail 

Article Written By:
Johann Dowa

Drop-In iOS Library Allowing You To Tweak UIKit UI Element Colors In Real Time

  •  
  •  
  •  
  •  
  •  

It seems like resources for working with color have come up quite a bit lately, and earlier this week I mentioned a UIColor helper library.

Often time you’ll have issues matching up colors to what is specified by a designer.   Even if the color codes are exactly as specified on a device they may look wrong, and with different styles of shading depending on the UI element getting this to look right can be a real timesink.

Here’s a library from Toco called TCColorTest that allows you to edit the color variables in real-time for UIKit user interface elements on screen and also provides a delegate so that you can modify the colors of any custom controls that you might be using.

You simply drag an arrow to point at the element you’d like to edit then tweak the colors with the sliders and shake to show/remove the color sliders.

Here’s an image showing TCColorTest in action:

TCColorTest

 

You can find TCColorTest on Github here.

Provided is an example using Apple’s UICatalog sample that you can use to test out the color tweaking.  A protocol is provided if you want to add color tweaking support to custom elements.

Pretty useful as you can run the app on device and not have to worry about things looking any different.  If you’re working with a designer you can have them tweak the colors and then make adjustments when they think things look right.  Pretty cool.

via @romainbriche


  •  
  •  
  •  
  •  
  •  

Submit A Resource

Have you created a useful tutorial, library or tool for iOS development that you would like to get in front of our 300,000+ monthly page views from iOS developers?

You can submit the url here.

The resources we feel will appeal to our readers the most will be posted on the front page.

Comments