我有一个在IB创建的TextView ...我有两个“段落”我想写,似乎工作,除了第二次写入覆盖第一个。写入TextView叠加先前写入
我该如何解决这个问题?
第一次写:
resultText.text =[NSString stringWithFormat:@"Decode Data: %@, \n%@\n\n",symbol.data, symbol.typeName]; // display it...
第二写:
resultText.text = [NSString stringWithFormat:@"\nDatabase: \n%@ \n%@ \n%@",
[NSString stringWithUTF8String:(char *)sqlite3_column_text(compiledStatement, 0)],
[NSString stringWithUTF8String:(char *)sqlite3_column_text(compiledStatement, 1)],
[NSString stringWithUTF8String:(char *)sqlite3_column_text(compiledStatement, 2)]];
所以你的问题是,“数据库...”字符串覆盖“解码数据......”字符串?另外,这是你正在谈论的UITextView? – 2011-05-02 15:56:28