2011-05-19 65 views

回答

0

浮现在脑海的第一个念头......

在cellForRow设置文本框标记为indexpath.row

工具- (void)textViewDidBeginEditing:(UITextView *)textView

根据这个textView.tag,调用selectrow

[self.tableView selectRowAtIndexPath:[NSIndexPath indexPathForRow:textView.tag inSection:<#(NSUInteger)#>] 
animated:<#(BOOL)#> scrollPosition:<#(UITableViewScrollPosition)#>] 
+0

好吧,它不能响应滑动以及? – aherlambang 2011-05-20 17:58:31

+0

我猜不是:(。 – Yorxxx 2011-05-23 09:47:04

0

我不知道这是否是你在寻找,但在我的情况下,我曾与UIImage的自定义单元格,UITextView的,只有当我点击的UIImageView我得到didSelectRowAtIndexPath方法识别器。确保UITextView是用户界面不能解决这个问题

8

我意识到这是一个老问题,但我最近有同样的问题。在我的情况下,修复就是简单地关闭UITextView的“User Interaction Enabled”。

-1

检查您的TableView选择属性设置为NO

错误: tableView.allowsSelection =假

DidSelect不会被称为 它必须是: tableView.allowsSelection =真

另外Check your Nib

相关问题