I am adding a UITextField programatically into a tableViewCell and currently the cursor starts right up against the left hand side of the textField. The textFields I have added using the xib file always have a gap here.
Does anyone know how to apply this gap manually?
This is my textField:
This is what I want my textField to look like:
Also are there any specifics on the expected dimensions, font, color or a UITextField?
I think the height should be 31 but I'm not sure what other characteristics I should set to make my custom one look like the added xib one.
Thanks for your help :)
EDIT:
Thanks for the help - looking at the answers provided my situation is slightly different as I am using keepLayout rather than setting up a frame with a rectangle. Is there any way to solve this using keepLayout or do I need to use a frame?