haha
hahaAnonymous
swift
10/23/2020 10:35 AM
796 B
20
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...