SCLAlertView-Swift icon indicating copy to clipboard operation
SCLAlertView-Swift copied to clipboard

Set Keyboard type should be there.

Open vayuzKrishna opened this issue 9 years ago • 2 comments

I need to input only numeric value from alert and i dont have any option to set keyboard type as numberpad in this library. please suggest me any fix for that ASAP.and update in this library.

Thanks in advanced.

vayuzKrishna avatar May 21 '16 10:05 vayuzKrishna

you can hold a reference to the textfield you add to the alert view, and then set the keyboard type on it before showing.

jhoughjr avatar Feb 20 '17 18:02 jhoughjr

Pretty Easy in Swift. You could get the textField instance by "let phoneField = alert.addTextField("placeHolder")". And then set the textField whatever you like. Ex. phoneField?.keyboardType = .numberPad etc.

vin20777 avatar Jan 17 '18 11:01 vin20777