pmusolino / PMAlertController

PMAlertController is a great and customizable alert that can substitute UIAlertController
MIT License
2.53k stars 187 forks source link

Be able to add the KeyboardType on textField #40

Closed Themakew closed 7 years ago

Themakew commented 7 years ago

I tried to add the keyboard type as "emailAddress" and it doesn't work. It'd be an interest feature.

pmusolino commented 7 years ago

Try this, works like a charm

alertVC.addTextField { (textField) in
            textField?.placeholder = "Location..."
            textField?.keyboardType = .numberPad
        }