Add shortcut to UIAlertController?

I know that you can add a text box, but is it possible to add a label to the UIAlertController ?

 alertController.addTextFieldWithConfigurationHandler({(textField: UITextField!) in textField.placeholder = "Hyperlink" inputTextField = textField inputTextField?.text="www.google.com" }) 

^^ TextField

+5
source share
1 answer

This can solve your problem a lot easier and more flexible. https://github.com/wimagguc/ios-custom-alertview

AddSubview is not available on UIAlertView with iOS7. The presentation hierarchy for this class is private and should not be changed.

As a solution, this class creates a dialog box such as iOS, which can be expanded using any UIView or buttons. The animation and appearance are also copied, and no images or other resources are needed.

-1
source

All Articles