iOS How i print variable from another NSString?

Xtrician

macrumors newbie
Original poster
Jan 12, 2011
19
0
Hello,
What i mean is,
For Example:
Code:
NSString *s = @"Alex";
NSString *s2 = @"Hi [s] how are you?";

NSLog(s);
NSLog(s2);
Here is the output i want:
Alex
Hi Alex how are you?

What is the correct syntax and the easy way to do this?
Thanks.
 
Last edited by a moderator:

jnoxx

macrumors 65816
Dec 29, 2010
1,343
0
Aartselaar // Antwerp // Belgium
Maybe pickup a book on basic programming in Xcode IDE and Objective-C Environment, no personal offense, but if every1 will start off with asking such questions, the forum will be a bit flooded :)
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.