I have some strange problem,my code is
NSLog(@"A:%@",a);
b=[NSString stringWithFormat:@"1800-%@",a];
NSLog(@"B:%@",b);
The output is,
A:5555555
B:Safari free
I dont know what the problem is?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
I have once encountered this kind of problem. The mistake i did was, i assigned IBOutlet to NSString
You may also assign IBOutlet to that NSString, please check, if so remove that.