Change the print as follows:
NSLog(@"%@", theColor);
Hope this helps.
The fact is that %s expects an array of C-string (char with a NULL terminator), and you pass an instance of NSString that does not match the C-string. The modifier that you need in the format for printing NSString content, %@ .
source share