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 ?
NSLog
printf
NSString
You can convert NSString to a UTF8 by calling the UTF8String method:
UTF8
UTF8String
printf("%s", [string UTF8String]);