When creating a UIAlertController without presenting it, a warning is displayed on the console. Why is this so?
override func viewDidLoad() { super.viewDidLoad() let _ = UIAlertController(title: "title", message: "message", preferredStyle: .Alert) }
Attempting to load the view controller view while freeing it is not allowed and may lead to undefined behavior
Edit:
Is it safe to ignore this warning? If the UIAlertController already created and I decide not to submit / use it, what should I do?
source share