thermogl/TITokenFieldView — pull request #9 by reallyseth (2012-01-05 13:48:44+00:00)
Title: tintColor fixed

Hi,

I started messing with TITokenFieldView to see if I could use it as a tag picker in a link tagging application I'm building. I really like what you're doing, but am going to need to make different tokens different colors to distinguish different types of tags. You had done a lot of the work already, getting the token tintColor to work. I decided instead of adding numbers to the RGB values, I used the alpha to lighten the tintColor for the unselected token gradient.

Also, I added a check on getRed:green:blue:alpha as it will return false if the color is a gray scale (such as UIColor grayColor), so if it returns false, then I use getWhite and turn that into an RGB value for use in the gradient.

Hope this helps.

Also, I'll be purchasing a license for this control for sure. You've saved me days (maybe weeks) of coding with the work you've done. Thanks so much!

Seth