2011-05-19 76 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