Ich versuche, neue Zeilen zu NSlog
hinzuzufügen.NSlog druckt keine neuen Zeilen r n
Ich betreibe:
NSLog(@"\n%@\r\n\r\n", json1);
NSLog(@"\n%@\r\n\r\n", json2);
Jedoch Die Ausgabe lautet:
2017-03-29 16:09:50 InAppTestAfApp2[312:33527]
{"attribution":"true"}
2017-03-29 16:09:50 InAppTestAfApp2[312:33527]
{"attribution":"false"}
Es ignoriert neue Linie als \r\n
(auch versucht \n
nur), aber erste \n
vor Zeichenfolge arbeitet
Ich erwarte, :
2017-03-29 16:09:50 InAppTestAfApp2[312:33527]
{"attribution":"true"}
2017-03-29 16:09:50 InAppTestAfApp2[312:33527]
{"attribution":"false"}
017-03-29 16:09:50 InAppTestAfApp2[312:33527] other logs ...
Ich verwende Xcode 8,3
[Edit 1]
ich versuchte zu laufen:
NSLog(@"%@ %@",type, @"xxxxx\n\n");
Noch sehe ich:
2017-03-29 16:09:50 InAppTestAfApp2[312:33527]
xxxxx
017-03-29 16:09:50 InAppTestAfApp2[312:33527] other logs ...
[EDIT 2]
um 363.210Als Arbeit füge ich Müll am Ende, aber es sieht chaotisch:
NSLog(@"%@ %@\r\n\r\n%s",type, json, @"`");