KyoheiG3 / SimpleAlert

Customizable simple Alert and simple ActionSheet for Swift
MIT License
398 stars 45 forks source link

TextField #4

Closed ghost closed 7 years ago

ghost commented 9 years ago

How can i use(get) texttfield text after OK button pressed(for example). THANK YOU:)

KyoheiG3 commented 9 years ago

You can get textFields of alert:

        alert.addAction(SimpleAlert.Action(title: "OK", style: .OK) { action in
            alert.textFields.first?.text
            })
ghost commented 9 years ago

Cool! Thank You!!!