UITextField设置文字间距
2017-08-14 本文已影响39人
学习ing兰
1.设置tetxField的内边距
[textField setValue:[NSNumber numberWithInt:5] forKey:@"paddingTop"];//上
[textField setValue:[NSNumber numberWithInt:5] forKey:@"paddingLeft"];//左
[textField setValue:[NSNumber numberWithInt:5] forKey:@"paddingBottom"];//下
[textField setValue:[NSNumber numberWithInt:5] forKey:@"paddingRight"];//右