I am new to objective-C and I need help adding a variable to a string. in java, to add a variable to a string you have to do something like this:
output = "Area: " + area + '\n' +"Circumference: " + circumference;
I can't figure out how to put that together to one string.
i have tried:
NSString *answer = [NSString stringWithFormat:@"Area : %.03f", area , "Circumference: %.03f", circumference];
and a couple other ways but it seems to not work.