i want to ask a question on NSString
, the question is if
NSString str = @"Hello";
str = [str stringByAppendingString:@"World"];
if we NSLog
the str
we would get an output - HelloWorld
!
So my question is if str
is NSString
class variable an its an static one (which can not be changed once it is defined) then how can we able to change it, (Note that I have used same NSString
object str
).