uiview - How to change View clicking on a butto in UIAlertViewController -
UIAlertViewController does not switch to another view shows all my stories, but click. Address it:
to alertController = UIAlertController (title: "Risposta Esatta" message: "", preferredStyle: UIAlertControllerStyle.Alert) alertController.addAction (UIAlertAction (title: "Avanti" style : UIAlertActionStylekDefault, handler: {(UIAlertAction) give secondViewController: secondViewController = secondViewController () self.presentViewController (secondViewController, animated: true, completion: zero)}))
it just worked for me:
@IBAction func choiceBtn (sender: UIButton) { Warning Controller = UIAlertController (Title: "Hello!", Message: "This is a warning sample ", PreferredStyle: .alert) go otherAction = UIAlertAction (title:" OK ", style: .DEFAULT) {action in println (" OK pushed! ")} Cancel Cancel ACTION = UILArtaction (title:" Cancel ", Style: .cancel) {null: ActionController (alertController, Animated: True, Completed: Null)," AutoCorrectController.addAction " )}
I've created a model presented segue from VC 1 to VC 2 and VC identifier 2 name fighters . .
There was no segue to another ViewController, so I added to show you that
Comments
Post a Comment