我希望我的 UILabel 显示来自 SQLite 数据库的文本。但它不能识别换行符“\n”——它只是像“Hello \n World”一样在屏幕上打印它。
这就是我从数据库中获取文本值的方式:
...
NSString *aDescription = [NSString stringWithUTF8String:(char *)sqlite3_column_text(compiledStatement, 3)];
myLabel.text = aDescription
...
有什么建议么?
UPD:这个问题不是如何在 UILabel 中显示多行。它是如何在 SQLite 中存储和稍后编码换行符。