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

Popular posts from this blog

Spring Boot + JPA + Hibernate: Unable to locate persister -

go - Golang: panic: runtime error: invalid memory address or nil pointer dereference using bufio.Scanner -

c - double free or corruption (fasttop) -