Open bing5 opened 8 years ago
where is the method '[self.attachments removeAllObjects]' ? Before the line 'NSAttributedString *originalAttributedString = [editingAttributedText attributedSubstringFromRange:attachment.range];' or after?
'[self.attachments removeAllObjects]' 单独的方法,不过是在赋值之前调的
when I use SETextView init and and run top code and ‘SETextView’ attribute ‘attachments’ init has spilth data.at last the APP crash this line: NSAttributedString *originalAttributedString = [editingAttributedText attributedSubstringFromRange:attachment.range];
so I add method ‘[self.attachments removeAllObjects]’ the is ok . I don’t know how?please help me