i am getting warning: incompatible Objective-C types assigning ‘struct NSString *’, expected ‘struct NSMutableString *’ on this line:-
Value = [Value stringByAppendingString:str];
I declared Value as
NSMutableString* Value;
How to rectify this?
With
NSMutableStringyou can (and should) just do the following:-stringByAppendingStringindeed returns NSString instance even if it was called on NSMutableString and converting it back to mutable will result in both performance overhead and worse code readability.P.S. Note also that in objective-c style guidelines variable names should start with lowercase.