First of all, sorry for this simple question. But I need to understand what is happening.
I thought the output should be upper case string. But it comes out to be UPPER CASE STRING.
- (void)test
{
NSString *stringVar = @"UPPER CASE STRING";
[self changeString:stringVar];
NSLog(@"value after changed : %@", stringVar);
}
- (void)changeString:(NSString*)string
{
string = [string lowercaseString];
}
What is happening and how to fix it?