出现原因:主线程 postNotification ,后 将 object 赋值到 textview.text 出现的错误。
错误信息:*** Assertion failure in void _UIPerformResizeOfTextViewForTextContainer(NSLayoutManager *, UIView<NSTextContainerView> *, NSTextContainer *, NSUInteger)(), /SourceCache/UIFoundation/UIFoundation-258.1/UIFoundation/TextSystem/NSLayoutManager_Private.m:1510
解决方法:
[objc] dispatch_async(dispatch_get_main_queue(), ^{ //写入妳的代码 });[/objc]