带数字和默认键盘的UITextField [英] UITextField with numbers and default keyboard

查看:164
本文介绍了带数字和默认键盘的UITextField的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

为keyboardType为UIKeyboardTypeDefault的Postal Code / ZIP字段创建了一个UITextField。我想使用默认键盘,但想要的数字&

Created a UITextField for "Postal Code/ZIP" field with a keyboardType of UIKeyboardTypeDefault. I would like to use the default keyboard but want the numbers & symbols to be shown by default as apposed to letters.

当您在Contacts.app中输入地址时,Apple会执行此操作。

Apple does this when you are entering addresses in the Contacts.app.

任何人都知道如何完成这项工作。

Anyone know how to get this accomplished?

推荐答案

code>键盘类型。

You want the UIKeyboardTypeNumbersAndPunctuation keyboard type.

这篇关于带数字和默认键盘的UITextField的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆