how to restrict UItext field as a numric keyboard in ios? -


this question has answer here:

how restrict uitext field numric in ios ?

it allow me type of keyboard want restrict phone number.

you can set keyboard type textfield directly interface builder shown in screenshot. can use uikeyboardtypephonepad or uikeyboardtypenumberpad per need.

also can use code :

[textfield setkeyboardtype:uikeyboardtypephonepad]; 

enter image description here


Comments

Popular posts from this blog

Magento/PHP - Get phones on all members in a customer group -

spring cloud - How to configure SpringCloud Eureka instance to point to https on non standard port -

javascript - Bootstrap Popover: iOS Safari strange behaviour -