我正在使用UITextView
来显示NSAttributedString(其中包含使用NSDocumentTypeDocumentAttribute: NSHTMLTextDocumentType
的NSTextAttachment
和HTML
表)。UITextView文本消失
当我在屏幕的一半处滚动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' – Manimaran
看看这个问题:http://stackoverflow.com/questions/20412563/in-my-programmatically-instantiated-uitextview-initialized-with-nstextcontainer。 – ninjaproger