haha
hahaunknown
swift
5 years ago
597 B
6
Indexable
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)Editor is loading...