Open davut5 opened 9 years ago
@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**
`}`
self.dismissViewControllerAnimated(true, completion: nil) working but self.presentViewController(sampleviewcontroller(), animated:true, completion:nil) not working