I am migrating from Java to Objective-C, so having a bit easy but meaningful question,
can I do
NSLog(@"\n"); // instead of
System.out.println();
and
NSLog (@"%i",a); //instead of
System.out.print(a);
I am migrating from Java to Objective-C, so having a bit easy but meaningful question,
can I do
NSLog(@"\n"); // instead of
System.out.println();
and
NSLog (@"%i",a); //instead of
System.out.print(a);
Copyright © 2021 Jogjafile Inc.
Yes. NSLog prints the message to stderr. The only difference from printf is that it adds some extra info (like time and build name). printf prints to stdout.