ios - AlertView delegate method alertViewShouldEnableFirstOtherButton not called Swift -


i'm creating alert view , trying use delegate method alertviewshouldenablefirstotherbutton isn't being called. documentation says going deprecated in ios9 i'm using ios8

    var alert = uialertview(title: "edit collection name", message: "", delegate: self, cancelbuttontitle: "cancel", otherbuttontitles: "ok")      alert.alertviewstyle = uialertviewstyle.plaintextinput      alert.show() 

*update duncan pointed out uialertview deprecated in ios8.

uialertview deprecated in ios8. credit @duncan c


Comments

Popular posts from this blog

javascript - Create websocket without connecting -

how to do line continuation in perl debugger for entering raw multi-line text (EOT)? -

Android SDK Manager freezes after installation of OSX 10.11 El Capitan public Beta -