Skip to content

iOS限制字符串输入,汉字占2个字符,英文占1个字符

Notifications You must be signed in to change notification settings

ganjmeng/RestrictedInput

Repository files navigation

RestrictedInput

iOS限制联想字符串输入,汉字占2个字符,英文占1个字符,解决的中英文切换输入法联想导致的bug

朋友开发时遇到一种情况,限制textfield长度,并且要适配多语言,做到,例如中文占2字符,英文占1字符,还有考虑其他语言,网上找了很多方法,不太合适,最后结合网上的方案,修改出了还比较适用。

About

iOS限制字符串输入,汉字占2个字符,英文占1个字符

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published