vikmeup / SCLAlertView-Swift

Beautiful animated Alert View. Written in Swift
MIT License
5.33k stars 765 forks source link

Set Keyboard type should be there. #187

Open vayuzKrishna opened 8 years ago

vayuzKrishna commented 8 years ago

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.

jhoughjr commented 7 years ago

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

vin20777 commented 6 years ago

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.