ios-文本输入类型选择.zip

时间:2022-07-31 12:24:53
【文件属性】:
文件名称:ios-文本输入类型选择.zip
文件大小:42KB
文件格式:ZIP
更新时间:2022-07-31 12:24:53
文本输入 菜鸟简单的运用了一下runtime 求大神留言指导指导 以下两个个步骤即可 非常方便 1.设置文本框可以输入汉字 字母 不设置就是没有限制的 self.tf.inputType = YBTextInputTypeChinese|YBTextInputTypeLetter; 2.设置文本框最多输入11个字符 不设置就是没有限制的 self.tf.maxLength = 11; 这两步就可以了 具体看代码
【文件预览】:
UITextFiledInputType
----UITextFiledInputType()
--------Assets.xcassets()
--------main.m(340B)
--------YBTextFieldInputType()
--------AppDelegate.h(283B)
--------AppDelegate.m(2KB)
--------Base.lproj()
--------.DS_Store(6KB)
--------ViewController.h(221B)
--------Info.plist(1KB)
--------ViewController.m(611B)
----UITextFiledInputType.xcodeproj()
--------project.xcworkspace()
--------project.pbxproj(22KB)
--------xcuserdata()
----UITextFiledInputTypeTests()
--------UITextFiledInputTypeTests.m(944B)
--------Info.plist(733B)
----.DS_Store(6KB)
----UITextFiledInputTypeUITests()
--------UITextFiledInputTypeUITests.m(1KB)
--------Info.plist(733B)

网友评论