How to pass a NSString object to stringByAppendingFormat in objective c.
I am able to append string as:
NSString *aString =[name stringByAppendingFormat:@"Hello"];
but its not being possible to use an object of NSString for appending for example in my case
NSString *aString =self.stringName;
NSString *resultString =[name stringByAppendingFormat:[NSString stringWithFormat:@"%@",aString]];
what has to be changed in the above code ?
Maybe you must try in this way ?