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

后端 未结 3 864
遥遥无期
遥遥无期 2021-01-29 16:51

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

[newString isEqualToString:CONSTANT_STRING];

Any wrong code here?

I got this warni

3条回答
  •  自闭症患者
    2021-01-29 17:53

    spare few minutes to read this. A goodread on pointers hell on constants and vice-versa.

    http://c-faq.com/decl/spiral.anderson.html

提交回复
热议问题