Open dalekzhangdong opened 5 years ago
but I can't set the webview width
@dalekzhangdong instead of alert.view.addSubview(web)
use alert.setValue(vc, forKey: "contentViewController")
Not working
instead of alert.view.addSubview(web) use alert.setValue(vc, forKey: "contentViewController")
I want add a vebview in alert, let title = "Privacy Policy" let message = "\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n" let alert = UIAlertController(title: title, message: message, preferredStyle: .alert)