user interface - How to add a button at the top right corner of an alertview in swift 3? -


i have used the following code create alertview:

let alert = uialertcontroller(title: "title", message: "message", preferredstyle: uialertcontrollerstyle.alert) alert.addaction(uialertaction(title: "cancel", style: uialertactionstyle.default, handler: nil)) alert.addaction(uialertaction(title: "okay", style: uialertactionstyle.default, handler: nil)) self.present(alert, animated: true, completion: nil) 

but want add button @ top right corner of alertview following image? how can implement it?

enter image description here


Comments

Popular posts from this blog

python - Operations inside variables -

Generic Map Parameter java -

arrays - What causes a java.lang.ArrayIndexOutOfBoundsException and how do I prevent it? -