How to use printf with NSString

I need to use something like NSLog , but without the timestamp and newline character, so I use printf . How can I use this with NSString ?

+52
objective-c cocoa-touch printf nsstring nslog
Sep 26 '10 at 0:23
source share
1 answer

You can convert NSString to a UTF8 by calling the UTF8String method:

 printf("%s", [string UTF8String]); 
+86
Sep 26 '10 at 0:26
source share



All Articles