views:

126

answers:

1

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

+5  A: 

You can convert an NSString into a UTF8 string by calling the UTF8String method:

printf("%s", [string UTF8String]);
Jacob Relkin