用于IP地址输入的iOS 键盘:NetAddressKeyboard

jopen 9年前

NetAddressKeyboard 是一个支持在UITextField中输入 IPv4 和 IPv6 的 IP 地址值的 iOS 键盘,采用 Objective-C 编写,支持 iOS7+。

安装和使用

  • 库文件拷贝到项目中
  • set it to the UITextField's inputView in -viewDidLoad (or where you find it most suitable)
  • for IPv4: aTextField.inputView = [[INNetAddressKeyboard alloc] initWithTextField:textModeServerAddress keyboardLayout:INNetAddressKeyboardIPv4];
  • for IPv6:aTextField.inputView = [[INNetAddressKeyboard alloc] initWithTextField:textModeServerAddress keyboardLayout:INNetAddressKeyboardIPv6];
  • make it better
  • enjoy!

用于IP地址输入的iOS 键盘:NetAddressKeyboard

项目主页:http://www.open-open.com/lib/view/home/1415449808074