If you are adding the text view to cell's container view then you have to call self.activeTextField.superview.superview
. If not, self.activeTextField.superview
should work.
In order to find out if your text field is added to container view's cell:
- If you add the text field from xib/storyboard to a custom cell then it is in contentView
- If you do
[cell addSubview:]
then is in cell's view - If you do
[cell.cotentView addSubView:]
then is in container view.