iOS:通过自定义UITableViewCell上的UITextView选择 [英] iOS: Selecting through UITextView on custom UITableViewCell

查看:58
本文介绍了iOS:通过自定义UITableViewCell上的UITextView选择的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个带有图像和UITextView属性的自定义UITableViewCell.textview跨到单元格的边缘.我的问题是,点击textview不会在didSelectRowAtIndexPath中注册.

I have a custom UITableViewCell with an image and UITextView property. The textview spans to the edge of the cell. My problem is tapping the textview does not register in didSelectRowAtIndexPath.

我如何做到这一点,以便可以单击"我的文本视图?

How can I make it so that I can "click through" my textview?

推荐答案

如果您不需要它可编辑,只需将文本视图的 enabled 属性设置为NO.

If you don't need it to be editable, just set your text view's enabled property to NO.

这篇关于iOS:通过自定义UITableViewCell上的UITextView选择的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆