In my application user has an option to change his background by choosing an image or by selecting a color from color picker. When ever he chooses background color its working fine, but when he changes the background with an image and next with some background color it is crashing.
Below is the crash report:
*** Assertion failure in -[UICGColor red], /sdf/sdfs/fsdf/sdf/sdf/Utilities/UIColor-Expanded.m:131
*** Terminating app due to uncaught exception 'NSInternalInconsistencyException', reason: 'Must be an RGB color to use -red'
I am using UIColor-HSVAdditions, UIColor-Expanded files, please guide me to solve this issue.
Does
[myColor canProvideRGBComponents]return false?Also, try
NSLog("%@", myColor);