I converted a std::string to NSString* by :
NSString *BufferString = [[NSString alloc] initWithCString:allBufferString.c_str()
encoding:[NSString defaultCStringEncoding]];
The code cout<<allBufferString;
shows the whole string in Log.
But NSLog(@"%@ ",BufferString)
doesn't show all the data instead ends with
0.061523 -0.03<...>
in the log .
So two questions:
If I send the NSString as a JSON string. Will all data be there?
How can I print all the data in the NSLog ?