Posted By

peetj on 04/09/11


Tagged

TextField Objective-c


Versions (?)

Who likes this?

3 people have marked this snippet as a favorite

athanhcong
cnathan
dvel


Objective-C Left padding on UITextField hack


 / Published in: Objective C
 

URL: http://stackoverflow.com/questions/3727068/set-padding-for-uitextfield-with-uitextborderstylenone

cool hack to add padding to a text field

  1. UIView *paddingView = [[UIView alloc] initWithFrame:CGRectMake(0, 0, 5, 20)];
  2. textField.leftView = paddingView;
  3. textField.leftViewMode = UITextFieldViewModeAlways;

Report this snippet  

You need to login to post a comment.