In some situations, the height and alignment of the UITextField may cause the clear button to be hidden under the cell, even if your text input appears normally.
Double check the height or try the following:
textField.contentVerticalAlignment = UIControlContentVerticalAlignmentCenter;
source
share