UITextViews in a UITableView link detection bug in iOS 7

后端 未结 13 796
醉梦人生
醉梦人生 2020-12-01 07:19

I have custom UITableViewCells that contain a UITextView. I have link detection in the UITextView turned on in Interface Builder. When I first load the table view, everythin

13条回答
  •  心在旅途
    2020-12-01 07:49

    Several suggestions here and through links provided did not help me with this bug.

    I tried setting attributed text, setting text to nil, setting text to @"".

    In the end forcing the text view in an out of editable mode did the trick. In prepare for reuse

    - (void)prepareForReuse
    {
      ...
        textView.editable = YES;
        textView.editable = NO;
      ...
    }
    

提交回复
热议问题