Here is a part of my code:
I have a string which is formed by a stringWithFormat like this:
NSString * DestChoice = [NSString stringWithFormat:@\"%@\", D
NSString * DestChoice = [NSString stringWithFormat:stringWithFormat:@"%@%@", Dest1String];
You are indicating that you want to format two objects with %@%@
, but you are only supplying a single object (Dest1String
).
The only problem I am seeing with your code is
NSString * DestChoice = [NSString stringWithFormat:stringWithFormat:@"%@", Dest1String];
Instead, you could use
NSString * DestChoice = [NSString stringWithString:@"%@", Dest1String];
Other than that, there is no problem. I am getting correct result.