Check for sendsActionOnEndEditing

This commit is contained in:
cacaodev authored and Aparajita Fishman committed 2012-07-13 07:45:08 -07:00
1 parent 7c01f14bfe
commit 2cf9fdf0d0
1 file changed
+1 -1
+1 -1
View File
@@ -3395,7 +3395,7 @@ Your delegate can implement this method to avoid subclassing the tableview to ad
If the dataview resigning triggers the action (as CPTextField does), we come right
back here and start an infinite loop. So we have to check this flag first.
*/
if ([sender isKindOfClass:[CPTextField class]] && _editingCellIndex === nil)
if ([sender respondsToSelector:@selector(sendsActionOnEndEditing)] && [sender sendsActionOnEndEditing] && _editingCellIndex === nil)
return;
_editingCellIndex = nil;