//文本框左边留白
UIView *leftView = [[UIImageView alloc]initWithFrame:CGRectMake(0, 0, 8, 40)];
leftView.backgroundColor = [UIColor clearColor];
self.searchTF.leftView = leftView;
self.searchTF.leftViewMode = UITextFieldViewModeAlways;
//文本框左边留白
UIView *leftView = [[UIImageView alloc]initWithFrame:CGRectMake(0, 0, 8, 40)];
leftView.backgroundColor = [UIColor clearColor];
self.searchTF.leftView = leftView;
self.searchTF.leftViewMode = UITextFieldViewModeAlways;
本文标题:TextField 左側邊距
本文链接:https://www.haomeiwen.com/subject/jvptmxtx.html
网友评论