How to add text inset for UITextField in IOS?

Posted by Rohit Kumar | Updated on

Want to add text inset for UITextField in IOS? You can set text inset for UITextField by setting the leftView. Overriding -textRectForBounds: will only change the inset of the placeholder text. To change the inset of the editable text, you need to also override -editingRectForBounds:


If you like this question & answer and want to contribute, then write your question & answer and email to freewebmentor[@]gmail.com. Your question and answer will appear on FreeWebMentor.com and help other developers.

Related Questions & Answers