haha

haha
mail@pastecode.io avatar
unknown
swift
4 years ago
597 B
3
Indexable
Never
        let storyboard = UIStoryboard(name: "Alert", bundle: nil)
        guard let myAlert = storyboard.instantiateViewController(withIdentifier: "alert") as? AlertViewController
        else { fatalError("DequeueReusableCell failed while casting") }
        myAlert.modalPresentationStyle = UIModalPresentationStyle.popover
        //        myAlert.modalPresentationStyle = UIModalPresentationStyle.overCurrentContext
        myAlert.modalTransitionStyle = UIModalTransitionStyle.crossDissolve
        myAlert.viewController = self
        self.present(myAlert, animated: true, completion: nil)