I have added a category extension to my NSString class. The method basically formats the string a certain way. I have:
- (NSString *)formatStringAsColor {
NSString *formattedString = [NSString stringWithFormat:(@"%@ color", self)];
return formattedString;
}
Then I try calling this method elsewhere in my app but it says it cannot be found.
I try something like:
NSString *string = [myOtherString formatStringAsColor];
Any ideas?
Several errors in that code. Fixes below:
Should work better now.