TextField を含む CustomCells を持つ UITableView があります。私がアップロードした写真を見てください。
Picture1 Picture2 スクロール を開始すると、キーボードが非表示になるようにします。
で試してみました
- (void) scrollViewWillBeginDragging:(UIScrollView *)scrollView
{
NSLog(@"Got called");
ProductTableCell *cell;
[cell.mengeTextField resignFirstResponder];
}
コンソールログ:
2012-04-24 12:57:48.924 Book-App[21029:15803] Got called
2012-04-24 12:57:50.535 Book-App[21029:15803] Got called
2012-04-24 12:57:51.681 Book-App[21029:15803] Got called
しかし、これは私にとってはうまくいきません。
他の解決策はありますか?