I have an NSString that I would like to add extra characters to. In my mind I thought it would be something simple like this:
NSString *answerString = [NSString stringWithFormat:@"%f", finalVolume] + @" Cubic Feet";
But that did not work. Does anyone know what I might be missing here? Thanks!
NSStringis immutable, so you cannot just add to it. Instead, you either compose your string like this:or
or create a mutable one: