我正在使用此链接中详细说明的 RichTextEditor ,我需要在单击按钮时在其他类的表格视图中显示书面内容,但在表格视图单元格中,出现了相应的 html 字符串。以下是我的代码
-(void)submitClicked{
contentObject.webCOntent=webView;
contentObject.savedMessage=SAVED;
contentObject.str = [webView stringByEvaluatingJavaScriptFromString:
@"document.body.innerHTML"];
NSLog(@"created %@",contentObject.str);
}
在 tableView 单元格中为 RowAyIndexPath,
cell.textLabel.text = [[notesArray objectAtIndex:indexPath.row]str ];
当我运行应用程序时,它在 tableview Oiuo8 中显示
其中,contentObject 是模型类对象,str 是字符串,webcontentUIWebView
在模型类中