博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
iOS UIKeyboardType各类键盘效果图
阅读量:6207 次
发布时间:2019-06-21

本文共 1689 字,大约阅读时间需要 5 分钟。

前言

每次设置键盘类型都要点击UIKeyboardType查看类型,在这里整理一下各种键盘类型。方便自己查看,省时省力。

typedef NS_ENUM(NSInteger, UIKeyboardType) {    UIKeyboardTypeDefault,                // Default type for the current input method.    UIKeyboardTypeASCIICapable,           // Displays a keyboard which can enter ASCII characters, non-ASCII keyboards remain active    UIKeyboardTypeNumbersAndPunctuation,  // Numbers and assorted punctuation.    UIKeyboardTypeURL,                    // A type optimized for URL entry (shows . / .com prominently).    UIKeyboardTypeNumberPad,              // A number pad (0-9). Suitable for PIN entry.    UIKeyboardTypePhonePad,               // A phone pad (1-9, *, 0, #, with letters under the numbers).    UIKeyboardTypeNamePhonePad,           // A type optimized for entering a person's name or phone number.    UIKeyboardTypeEmailAddress,           // A type optimized for multiple email address entry (shows space @ . prominently).    UIKeyboardTypeDecimalPad NS_ENUM_AVAILABLE_IOS(4_1),   // A number pad with a decimal point.    UIKeyboardTypeTwitter NS_ENUM_AVAILABLE_IOS(5_0),      // A type optimized for twitter text entry (easy access to @ #)    UIKeyboardTypeWebSearch NS_ENUM_AVAILABLE_IOS(7_0),    // A default keyboard type with URL-oriented addition (shows space . prominently).    UIKeyboardTypeAlphabet = UIKeyboardTypeASCIICapable, // Deprecated};

效果

UIKeyboardTypeDefault

UIKeyboardTypeDefault

UIKeyboardTypeASCIICapable

UIKeyboardTypeASCIICapable

UIKeyboardTypeNumbersAndPunctuation

UIKeyboardTypeNumbersAndPunctuation

UIKeyboardTypeURL

UIKeyboardTypeURL

UIKeyboardTypeNumberPad

UIKeyboardTypeNumberPad

UIKeyboardTypePhonePad

UIKeyboardTypePhonePad

UIKeyboardTypeNamePhonePad

UIKeyboardTypeNamePhonePad

UIKeyboardTypeEmailAddress

UIKeyboardTypeEmailAddress

UIKeyboardTypeDecimalPad

UIKeyboardTypeDecimalPad

UIKeyboardTypeTwitter

UIKeyboardTypeTwitter

UIKeyboardTypeWebSearch

UIKeyboardTypeWebSearch

UIKeyboardTypeAlphabet

UIKeyboardTypeAlphabet


再一次感谢您花费时间阅读这篇文章!

微博:

博客:

转载地址:http://vehca.baihongyu.com/

你可能感兴趣的文章
C#操作XmlDocument对象 报缺少根节点 一一道来
查看>>
出了本练内功的书:《完美软件开发:方法与逻辑》
查看>>
object c 快速构建对象
查看>>
C链表反转(时间复杂度O(n))
查看>>
黑马程序员_<<泛型>>
查看>>
CSS 如何让Table的里面TD全有边框 而Table的右左边框没有
查看>>
技术人生:三亚之行
查看>>
Oracle C#处理时间类型的Insert
查看>>
linux包之iproute之ip命令
查看>>
[转]基于overlayfs的硬盘资源隔离工具troot
查看>>
kernel32.dll出错解决方案
查看>>
动态规划0—1背包问题
查看>>
linux下查看文件及目录个数
查看>>
2015 CALLED THE INTERFACE OF 2014
查看>>
我是怎样成长为系统架构师的
查看>>
UGUI的优点新UI系统
查看>>
Android二维码之创建
查看>>
Python匿名函数——lambda表达式
查看>>
从Eclipse转移到IntelliJ IDEA一点心得
查看>>
Memcached总结三:Memcached常用命令及使用说明
查看>>