In the case you described, you drop the "const" qualifier (pass const NSString * to a method that expects NSString *).
NSStrings are always immutable, so you can safely declare a constant as "NSString *". If you want to trigger compiler warnings when assigning values โโto a variable, declare it as "NSString * const".
source share