For some reason, when I add a UITextfield as a subview of the contentview of a tablecell, the clearbutton does not align with the text typed in the field, and appears a bit unde
Subclass UITextField and override this method:
- (CGRect)clearButtonRectForBounds:(CGRect)bounds { return CGRectMake(bounds.origin.x - 10, bounds.origin.y, bounds.size.width, bounds.size.height); }
return the CGRect that matches your needs.