Search
 
SCRIPT & CODE EXAMPLE
 

SWIFT

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)
Comment

PREVIOUS NEXT
Code Example
Swift :: swift view float on keyboard show 
Swift :: swiftui checkbox 
Swift :: cannot assign IBaction to uiimageview 
Swift :: swift for loop index 
Swift :: unrecognized font family Helvetica-Regular 
Swift :: remove checkmark when selecting the cell again swift 5 
Swift :: swift compare string to button title 
Swift :: How to control the line spacing in UILabel 
Swift :: swift uipickerview 
Swift :: ShareSheet: UIViewControllerRepresentable swiftui 
Swift :: iOS 10.3.1 Simulator manually 
Swift :: swift get max of two numbers 
Swift :: how to check object is nil in swift 
Swift :: swift clear user defaults 
Swift :: swift read file 
Swift :: swift collectionview scrolltoitem 
Swift :: swift change background color 
Swift :: convert string to unit swift 
Swift :: swift hello world 
Swift :: swiftui create search bar 
Swift :: swift pop view controller 
Swift :: add months to date swift 
Swift :: uilabel set fon siz 
Swift :: Swift Markup in Xcode 11 
Swift :: swift 5 change message color of alert 
Swift :: string to array swift 
Swift :: declare variable in swif 
Swift :: Create a Tuple 
Swift :: Swift enum With Switch Statement 
Swift :: Swift for vs while loop 
ADD CONTENT
Topic
Content
Source link
Name
9+5 =