【发布时间】:2015-04-20 11:57:04
【问题描述】:
我正在使用 UITextView 显示 NSAttributedString(其中包含使用 NSDocumentTypeDocumentAttribute: NSHTMLTextDocumentType 的 NSTextAttachment 和 HTML 表)。
当我在屏幕的一半滚动UITextView 时,文本正在消失。 谁能解释它是怎么发生的?以及如何解决?
UITextView *textView = [[UITextView alloc]init];
textView.frame = CGRectMake(0, 0, 768, 1024);
textView.editable = NO;
textView.selectable = NO;
textView.attributedText = attributedString; //My AttributedSting
[self.view addSubview:textView];
【问题讨论】:
-
你能告诉我什么是委托吗?表示它是 AppDelegate 对象吗?
-
@AjayGabani 这是
NSMutableAttributedString -
@ninjaproger 我试过了。结果是一样的:(
标签: ios objective-c uitextview