UITextViews in a UITableView link detection bug in iOS 7

后端 未结 13 822
醉梦人生
醉梦人生 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:45

    I also face this problem and I found out to solve this is to set textview properties in the following order,

    [textview setDataDetectorTypes:UIDataDetectorTypeNone ];
    textView.editable = NO;
    [textView setDataDetectorTypes:UIDataDetectorTypeLink];
    textView.text=@"The text you need to show with link";
    

    Hope this help you.....

提交回复
热议问题