Last active
April 24, 2017 23:01
-
-
Save hallomuze/a9be9f4a474f54a16bb3906d829f8388 to your computer and use it in GitHub Desktop.
NSString Const Warning Fix
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//[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