Avoid being unable to resign first responder
Avoid being unable to resign first responder

Previously, resignFirstResponder caused a layout pass, which trigger viewDidLayoutSubviews. Since that method makes the text field the first responder if it isn't already, the text field would immediately become first responder again. This explicit flag avoids that.

Nykho/SDCAlertView,Wurrly/SDCAlertView,DeskConnect/SDCAlertView,winkapp/SDCAlertView,adamkaplan/SDCAlertView,DeskConnect/SDCAlertView,sberrevoets/SDCAlertView,sberrevoets/SDCAlertView,HuylensHu/SDCAlertView