[iOS] String

I am starting to learn Objective-C.
But it is too difficult.
There are many types to output log.
AS3 is more easier than Objective-C.

interger
NSLog(@”%d”, foo);

decimal
NSLog(@”%s”, foo);

NSString
NSLog(@”%@”, foo);

C String
char* mystr = “mystring”;
NSLog(@”%s”, mystr);

Comments are closed.