UITableView is smart enough to not prepare
a cell for reuse when one of it’s subviews is the firstResponder. You
can see this for yourself if you have a subclass of UITableViewCell
and override “- (void)prepareForReuse;”.
Latest Updates: FirstResponder RSS
-
Praveen Matanam
-
Praveen Matanam
As of 3.0, if you use a UITableViewController as the view
controller for your UITableView, it’ll handle adjusting the table’s
scroll offset automatically to ensure that the firstResponder isn’t
covered up when the keyboard is shown. Before 3.0 the table’s
contentOffset and/or frame needed to be adjusted manually when the
keyboard was shown or hidden by listening for
UIKeyboardWillShowNotification and UIKeyboardWillHideNotification. -
Praveen Matanam
UIView *firstResponder =
[[UIApplication sharedApplication]
performSelector:@selector(firstResponder)];