iOS10 NSLog限制为1024个字符的字符串 [英] iOS10 NSLog is limited to 1024 chars strings
本文介绍了iOS10 NSLog限制为1024个字符的字符串的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
在iOS10中,NSlog限制为1024个字符,任何人都知道打印完整字符串的解决方法。
In iOS10 the NSlog are limited to 1024 characters has anybody know a workaround to print complete string.
推荐答案
c $ c> printf ,而不是 NSLog
like,
try printf
then instead of NSLog
like,
printf("%s", [string UTF8String]);
它可能有效
这篇关于iOS10 NSLog限制为1024个字符的字符串的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文