“sending ‘const NSString *’ to parameter of type ‘NSString *’ discards qualifiers” warning

I have Constants NSString, that I want to call like:

[newString isEqualToString:CONSTANT_STRING];

Any wrong code here?

I got this warning:

sending ‘const NSString *’ to parameter of type ‘NSString *’ discards qualifiers

How should these be declared?

3 Answers
3

Leave a Comment