You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
textField有个自动联想的属性autocorrectionType设置为no。然后要过滤一下中文,因为iPhone有一个自带的快捷文本,英文键盘输入msd,会有一个马上到的弹窗。
`// MARK: ===============检查文字是否是中文===============
private func checkStringIsChinese(_ string: String) -> Bool {
for character in string {
if character >= "\u{4E00}" && character <= "\u{9FA5}" {
return true
}
}
设置inputType为CRInputType_Normal输入英文字母,在输入到第二英文时,左上角会出现一个浅蓝色的view