KPAColorFormatter 1.0.0

KPAColorFormatter 1.0.0

TestsTested
LangLanguage Obj-CObjective C
License MIT
ReleasedLast Release Dec 2014

Maintained by Klaas Pieter Annema.



  • By
  • Klaas Pieter Annema

Introduction

A NSFormatter subclass that maps UIColor or NSColor instances to meaningful names

Installation

Add the following to your Podfile:

pod "KPAColorConvenience"

Usage

Use like any other NSFormatter. stringForObjectValue: maps colors to names and getObjectValue:forString:errorDescription: does the reverse.

Credits

The default color names were taken from http://chir.ag/projects/ntc/