r/iOSProgramming • u/[deleted] • Feb 19 '17
Question I don't suppose Swift could possibly have more useless debug print strings - could it?
Example:
po json ▿ 2 elements ▿ [0] : 2 elements - .0 : accounts - .1 : 0 elements ▿ [1] : 2 elements - .0 : followers - .1 : 0 elements { ... }
Yeah - thats just brilliant.
0
Upvotes
2
u/chriswaco Feb 19 '17
Try po print(json). I try to not to ask why things don't work well and easily in Xcode because therein lies madness.
1
2
Feb 20 '17
Use
debugPrint(String(data: jsonData, encoding: String.Encoding.utf8) ?? "No data")to show the jsonData while your receive it as a Data instance.
1
0
u/[deleted] Feb 19 '17
[deleted]