ui alert swift yes no
let refreshAlert = UIAlertController(title: "Refresh", message: "All data will be lost.", preferredStyle: UIAlertControllerStyle.alert)
refreshAlert.addAction(UIAlertAction(title: "Ok", style: .default, handler: { (action: UIAlertAction!) in
print("Handle Ok logic here")
}))
refreshAlert.addAction(UIAlertAction(title: "Cancel", style: .cancel, handler: { (action: UIAlertAction!) in
print("Handle Cancel Logic here")
}))
present(refreshAlert, animated: true, completion: nil)
Also in Swift:
- how to dismiss keyboard swiftui
- convert string to base64 swift
- get device height spritekit
- get icloud doc swift
- Swift class init
- rounded ios button
- how to detect widget family and return specific view widget swift
- text field passing data
- swift xcode debug cannot see code backtrace
- show alert swiftui
- how to set the font of text in swiftui
- swift change background color
- give background color swiftui
- swiftui foreach
- get length of array swift
- check when webview finish loading swift
- rxswift map
- tellraw minecraft
- view will appear
- hide status bar in tableview cell in swift
- swift sort list true before false
- cifilter image preserve orientation
- button image not working swiftui
- swift has Top Notch