Hex in a stringWithFormat BAD ACCESS

后端 未结 2 1684
渐次进展
渐次进展 2021-01-27 15:04

Here is a part of my code:

I have a string which is formed by a stringWithFormat like this:

NSString * DestChoice = [NSString stringWithFormat:@\"%@\", D         


        
2条回答
  •  醉酒成梦
    2021-01-27 16:01

    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).

提交回复
热议问题