1.設(shè)置tetxField的內(nèi)邊距
[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"];//右