[错误]Assertion failure in void _UIPerformResizeOfTextViewForTextContainer

出现原因:主线程 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]

16 thoughts on “[错误]Assertion failure in void _UIPerformResizeOfTextViewForTextContainer”

  1. c_7522

    Hello there, You’ve done an incredible job. I’ll definitely digg it
    and personally recommend to my friends. I’m confident they will be benefited from this website.

  2. สล็อตค่ายใหญ่

    Have you ever considered about including a little bit more than just your articles?
    I mean, what you say is important and everything. But imagine if you added
    some great images or video clips to give your posts more, “pop”!
    Your content is excellent but with images and clips,
    this blog could definitely be one of the very best in its niche.
    Terrific blog!

  3. Super Locksmith Pros locksmith

    The difference is easy to miss. For anyone comparing locksmith options,
    electronic features do not eliminate the need for correct latch and deadbolt alignment.

    Before replacing a smart lock, it helps to separate
    app problems from mechanical resistance at the door.
    This is useful information for homeowners and property managers alike.

发表评论

电子邮件地址不会被公开。