textField设置输入文字距左边的距离

1.设置tetxField的内边距

[self.yourTextField setValue:[NSNumber numberWithInt:5] forKey:@”paddingTop”];

[self.yourTextField setValue:[NSNumber numberWithInt:5] forKey:@”paddingLeft”];

[self.yourTextField setValue:[NSNumber numberWithInt:5] forKey:@”paddingBottom”];

[self.yourTextField setValue:[NSNumber numberWithInt:5] forKey:@”paddingRight”];

2.设置textfield的leftView 喂一个带有宽度的view

上一篇:UIScrollView,UICollectionView 和UITableView的属性和方法


下一篇:loadrunner脚本优化-ParameterList参数类型介绍