0

I am finding that on iOS 10 device, NSLog is being truncated for a large string which is not the case on iOS 8 or 9. The only workaround is to print it char by char :

        NSString *largeString = .../* a 30000 char string */
        for (NSInteger i = 0; i < largeString.length; i++) {
            printf("%c", [largeString characterAtIndex:i]);
        }

Why is this and how to fix it ?

Deepak Sharma
  • 5,577
  • 7
  • 55
  • 131

0 Answers0