光标隐藏
[[self.nameField valueForKey:@"textInputTraits"] setValue:[UIColor clearColor] forKey:@"insertionPointColor"];
//光标的颜色
[[UITextField
appearance]
setTintColor:[self
diffColor:color]];
本文介绍了一种在iOS应用中使用Swift隐藏UITextField光标的方法,并提供了设置光标颜色的额外技巧。
光标隐藏
[[self.nameField valueForKey:@"textInputTraits"] setValue:[UIColor clearColor] forKey:@"insertionPointColor"];
1054

被折叠的 条评论
为什么被折叠?
