NSLog(@"testString: %@", testString);
P.S. the second testString is a pointer to a NSString.
I found the above in a tutorial, and it says (%@ means an Objective-C object).
So, what does the first @ do?
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.
@”” just means a string declaration in objective-c.
e.g.
or
So in NSLog you are saying..
NSLog .. this string @” text ” .. the %@ pointer links to things outside the string after the commar.
E.g.