1. Kind middle hint box-alert bottom Prompt box-actionsheet2. Menu item parameter title: Title cancels style: style. Cencel Handle:nil misoperation Add menu items to Uialertcontroller: Use the Addaction method to display menus: using self.present
MARK:-Table View delegate//cell click Override Func TableView (_ Tableview:uitableview, Didselectrowat Indexpath:indexpat h) { //print ("You clicked on \ (indexpath.section) group, \ (Indexpath.row) line") Let menu = Uialertcontroller (title: "Hint", Message: "You clicked \ (indexpath.section) group, \ (Indexpath.row) line", Preferredstyle:. Alert) let option = uialertaction (title : "Confirm", Style:. Default, Handler:nil) let option2 = uialertaction (title: "Cancel", Style:. Cancel, Handler:nil) let Option3 = uialertaction (title: "Delete", style:. Destructive, Handler:nil) menu.addaction (option) menu.addaction (Option2) Menu.addaction (Option3) menu.addaction (option) self.present (menu, Animated:true, Completion:nil)}
iOS note "Uialertcotroller" 2017-09-06