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

sql - Time in datatime field -

javascript - How to split the success output from an Ajax post? -

java - sharing object across different classes -