2012-03-08 46 views
0

我有它一個文本框一個自定義的UITableViewCell。要將文本輸入到文本框中,我正在使用自定義鍵盤。但是,按下鍵盤按鈕時,我的方法無法更新文本字段中的文本。當我檢查我抓住的細胞時,我發現它是空的。下面是我使用的代碼:UITableViewCell中反應遲鈍的自定義鍵盤

VariableCellController *cell = (VariableCellController *)[equationViewController.variableTable cellForRowAtIndexPath:[NSIndexPath indexPathForRow:[equationViewController.selectedVariableRow intValue] inSection:0]]; 

哪裏VariableCellController是的UITableViewCell控制器和equationViewController是我CustomNumberPadViewController的屬性。

看來,如果我equationViewController的實例實際上不是顯示一個...

回答

0

明白了,我添加了一個文本框在我的鍵盤控制器類的屬性,並通過手柄的文本字段的鍵盤控制器在textfielddidbeginingiting方法。