UITextField 输入规则配置(Swift-IB)

输入规则配置:

格式验证:通过正则表达式设置输入内容格式限制。

长度限制:设置输入内容的最大长度。

跳转顺序:通过 Tab 键控制文本字段之间的跳转顺序。

配置步骤:

  1. 打开 Interface Builder,选择 UITextField 组件。
  2. 在属性检查器中,展开 "Text Input Traits" 部分。
  3. 根据需要配置 "Input Mask"、"Validation Rule"、"Maximum Length" 和 "Tab Order" 属性。
zip
swift-IB方式配置UITextField组件输入规则格式验证长度跳转顺序.zip 预估大小:56个文件
folder
EasyUITextFields-master 文件夹
folder
WASHD 文件夹
folder
Assets 文件夹
folder
.gitkeep 文件夹
folder
Classes 文件夹
file
TextFormatting.swift 7KB
file
JumpOrder.swift 9KB
file
Validation.swift 26KB
folder
.gitkeep 文件夹
file
MaxLength.swift 3KB
file
WASHD.podspec 2KB
file
IBScreenshot.png 38KB
file
.travis.yml 507B
file
LICENSE 1KB
file
_Pods.xcodeproj 27B
folder
Example 文件夹
folder
Pods 文件夹
file
Manifest.lock 252B
folder
Target Support Files 文件夹
folder
Pods-WASHD_Example 文件夹
file
Pods-WASHD_Example.release.xcconfig 607B
file
Pods-WASHD_Example-acknowledgements.plist 2KB
file
Pods-WASHD_Example-dummy.m 140B
file
Pods-WASHD_Example-acknowledgements.markdown 1KB
file
Info.plist 828B
file
Pods-WASHD_Example-frameworks.sh 4KB
file
Pods-WASHD_Example.modulemap 126B
file
Pods-WASHD_Example-umbrella.h 158B
file
Pods-WASHD_Example-resources.sh 5KB
file
Pods-WASHD_Example.debug.xcconfig 607B
folder
WASHD 文件夹
file
Info.plist 828B
file
WASHD-umbrella.h 132B
file
WASHD.modulemap 100B
file
WASHD-prefix.pch 48B
file
WASHD-dummy.m 114B
file
WASHD.xcconfig 487B
folder
Pods-WASHD_Tests 文件夹
file
Pods-WASHD_Tests-umbrella.h 154B
file
Info.plist 828B
file
Pods-WASHD_Tests-frameworks.sh 3KB
file
Pods-WASHD_Tests.modulemap 122B
file
Pods-WASHD_Tests.debug.xcconfig 471B
file
Pods-WASHD_Tests-dummy.m 136B
file
Pods-WASHD_Tests-acknowledgements.plist 805B
file
Pods-WASHD_Tests-acknowledgements.markdown 133B
file
Pods-WASHD_Tests-resources.sh 5KB
file
Pods-WASHD_Tests.release.xcconfig 471B
folder
Local Podspecs 文件夹
file
WASHD.podspec.json 1KB
folder
Pods.xcodeproj 文件夹
file
project.pbxproj 33KB
file
Podfile.lock 252B
folder
Tests 文件夹
file
Info.plist 733B
file
Tests.swift 9KB
folder
WASHD 文件夹
file
ViewController.swift 6KB
file
Info.plist 1KB
file
AppDelegate.swift 2KB
folder
Base.lproj 文件夹
file
Main.storyboard 15KB
file
LaunchScreen.xib 4KB
folder
Images.xcassets 文件夹
folder
AppIcon.appiconset 文件夹
file
Contents.json 586B
file
Podfile 143B
folder
WASHD.xcodeproj 文件夹
folder
xcshareddata 文件夹
folder
xcschemes 文件夹
file
WASHD-Example.xcscheme 4KB
folder
project.xcworkspace 文件夹
file
contents.xcworkspacedata 150B
file
project.pbxproj 24KB
folder
WASHD.xcworkspace 文件夹
file
contents.xcworkspacedata 223B
file
README.md 9KB
file
.gitignore 619B
...
zip 文件大小:99.24KB