KyoheiG3 / SimpleAlert

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

How to dismiss alertcontroller #24

Closed rezasham closed 6 years ago

rezasham commented 8 years ago

Keyboard is automatically shown as soon as the alertview with a textfield is used. this is covering the buttons (cancel button added to view) so not possible to dismiss the keyboard or cancel out and dismiss the entire view.

  1. How to remove auto selection on the textfield as the alertview is shown?
  2. Possible to dismiss the alertview by tapping outside of the alertview?

R

KyoheiG3 commented 8 years ago

Sorry but both impossible. For question 2 try add UITapGesture to AlertController view. then call dismiss.

Thanks.