So I’ve a UIAlertController which must be introduced on high of one other view controller, so a baby view controller. I can get the kid view controller to show on high of the father or mother no downside, however I am unable to get the alert buttons to reply after I carry this little one view controller to the entrance.
UIAlertController* alert = [AlertHelper createAlertWithTitle:title
message:message
cancelButton:nil
continueButtonText:Ok
continueAction:nil
cancelAction:nil];
alert.view.translatesAutoresizingMaskIntoConstraints = false;
[self addChildViewController:alert];
alert.view.body = self.view.bounds;
[self.view addSubview:alert.view];
[alert didMoveToParentViewController:self];
[alert.view.centerXAnchor constraintEqualToAnchor:self.view.centerXAnchor].lively = YES;
[alert.view.centerYAnchor constraintEqualToAnchor:self.view.centerYAnchor].lively = YES;