I'm trying to integrate the iPad example into my own code. My view controller has a nil background color. When invoking -changeColor, it sets the sourceColor, which triggers a crash in HSVFromUIColor.
It seems to be that HSVFromUIColor cannot handle a nil color. Perhaps add a check for if color is nil.
I'm trying to integrate the iPad example into my own code. My view controller has a nil background color. When invoking
-changeColor, it sets thesourceColor, which triggers a crash inHSVFromUIColor.It seems to be that
HSVFromUIColorcannot handle a nil color. Perhaps add a check for ifcoloris nil.