//这里设置光标位置,让光标位置后移10
textField.leftView = [[UIView alloc]initWithFrame:CGRectMake(0, 0, 10, 0)]; textField.leftViewMode = UITextFieldViewModeAlways;本文共 201 字,大约阅读时间需要 1 分钟。
//这里设置光标位置,让光标位置后移10
textField.leftView = [[UIView alloc]initWithFrame:CGRectMake(0, 0, 10, 0)]; textField.leftViewMode = UITextFieldViewModeAlways;转载于:https://www.cnblogs.com/KiVen2015/p/5822827.html