Skip to content

Instantly share code, notes, and snippets.

@hallomuze
Last active April 24, 2017 23:01
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save hallomuze/a9be9f4a474f54a16bb3906d829f8388 to your computer and use it in GitHub Desktop.
Save hallomuze/a9be9f4a474f54a16bb3906d829f8388 to your computer and use it in GitHub Desktop.
NSString Const Warning Fix
//[Warning Message]
//“sending ‘const NSString *’ to parameter of type ‘NSString *’ discards qualifiers” warning
//[Warning]
const NSString * kBlahBlash = @""; // 상수를 가리키는 포인터 (pointer to constant)
// equivalent to
NSString const * kBlahBlash = @"";
//[Fixed]
NSString * const kBlahBlash = @""; // 상수포인터(constant pointer)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment