ios - Good example for using UIAlertControler -
im'm searching example of use uialertcontroller uislider, uisegmentedcontrol, uistepper.
i cant't use uialert , uiactionsheet don't know how add slider, segmented control or stepper alertcontroller , display on uitableviewcontroller.
i'm programming using swift.
let alertcontroller = uialertcontroller(title: "hello", message: "do want save changes?", preferredstyle: .alert) let okaction = uialertaction(title: "don't save", style: .default) { (action) in profileback = "false" self.dismissviewcontrolleranimated(false, completion: nil) } alertcontroller.addaction(okaction) let destroyaction = uialertaction(title: "save", style: .default) { (action) in self.callupdatebasicdetailsapi() } alertcontroller.addaction(destroyaction) self.presentviewcontroller(alertcontroller, animated: true) { // ... }
Comments
Post a Comment