SweetAlert-iOS icon indicating copy to clipboard operation
SweetAlert-iOS copied to clipboard

how can i send to another viewcontroller after tap OK button?

Open davut5 opened this issue 8 years ago • 1 comments

self.dismissViewControllerAnimated(true, completion: nil) working but self.presentViewController(sampleviewcontroller(), animated:true, completion:nil) not working

davut5 avatar Sep 03 '15 21:09 davut5

@davut5 you can do something like _ = SweetAlert().showAlert("Are you sure?", subTitle: "You are navigating to other screen", style:
AlertStyle.warning, buttonTitle:"OK", buttonColor:UIColor.colorFromRGB(0xD0D0D0) , otherButtonTitle: "" ,otherButtonColor: UIColor.colorFromRGB(0xDD6B55), EnabledOutsideTap:
true) { (isOtherButton) -> Void in

            **// Code to navigate**

 `}`

varkrishna avatar Feb 17 '18 06:02 varkrishna