Created
December 30, 2018 01:20
-
-
Save ayoub-9/e6644306993fca65e0009fb85f5f6217 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
///@IBOutlet var View: UIView! | |
@IBAction func Choose(_ sender: Any) { | |
let alertController = UIAlertController(title: "اختر المستوى", message: "", preferredStyle: .alert) | |
let action1 = UIAlertAction(title: "المستوى الاول", style: .default) { (action:UIAlertAction) in | |
//Here Code | |
let viewController:UIViewController = UIStoryboard(name: "Main", bundle: nil).instantiateViewController(withIdentifier: "MS1") | |
self.present(viewController, animated: false, completion: nil) | |
} | |
let action2 = UIAlertAction(title: "المستوى الثاني", style: .default) { (action:UIAlertAction) in | |
//here Code | |
let viewController:UIViewController = UIStoryboard(name: "Main", bundle: nil).instantiateViewController(withIdentifier: "MS2") | |
self.present(viewController, animated: false, completion: nil) | |
} | |
let action3 = UIAlertAction(title: "المستوى الثالث", style: .default) { (action:UIAlertAction) in | |
//here code | |
let viewController:UIViewController = UIStoryboard(name: "Main", bundle: nil).instantiateViewController(withIdentifier: "MS3") | |
self.present(viewController, animated: false, completion: nil) | |
} | |
let action4 = UIAlertAction(title: "", style: .default) { (action:UIAlertAction) in | |
} | |
let action5 = UIAlertAction(title: "", style: .default) { (action:UIAlertAction) in | |
} | |
let action6 = UIAlertAction(title: " ", style: .default) { (action:UIAlertAction) in | |
} | |
let action7 = UIAlertAction(title: "", style: .default) { (action:UIAlertAction) in | |
} | |
let action8 = UIAlertAction(title: "", style: .default) { (action:UIAlertAction) in | |
} | |
let action9 = UIAlertAction(title: "", style: .default) { (action:UIAlertAction) in | |
} | |
let action10 = UIAlertAction(title: "", style: .default) { (action:UIAlertAction) in | |
} | |
let action11 = UIAlertAction(title: " ", style: .default) { (action:UIAlertAction) in | |
} | |
let action12 = UIAlertAction(title: "⟶Cancel⟵", style: .cancel) { (action:UIAlertAction) in | |
} | |
alertController.addAction(action1) | |
alertController.addAction(action2) | |
alertController.addAction(action3) | |
alertController.addAction(action4) | |
alertController.addAction(action5) | |
alertController.addAction(action6) | |
alertController.addAction(action7) | |
alertController.addAction(action8) | |
alertController.addAction(action9) | |
alertController.addAction(action10) | |
alertController.addAction(action11) | |
alertController.addAction(action12) | |
self.present(alertController, animated: true, completion: nil) | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment