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?
Comments
Post a Comment