add subview to uialertcontroller

// add view
// UIAlertControllerStyleAlert
UIAlertController *alertControl = [UIAlertController alertControllerWithTitle:NSLocalizedString(@"Notifications", nil)
                                                                      message:NSLocalizedString(@"\n\n\n\n\n\n", nil)
                                                               preferredStyle:UIAlertControllerStyleAlert];


UIAlertAction *okAction = [UIAlertAction actionWithTitle:NSLocalizedString(@"**Controller**OK", nil)
                                                   style:UIAlertActionStyleCancel
                                                 handler:^(UIAlertAction * _Nonnull action) { }];


UITextView *customView = [[UITextView alloc] initWithFrame:CGRectMake(10, 50, 250, 100)];
customView.backgroundColor = [UIColor clearColor];


[customView setText:@"very long text"];


[alertControl addAction:okAction];


[alertControl.view addSubview:customView];


[alertControl show];


If I want to add a very long message to an uialertcontroller and control the height of the alert. Can I add a UITextView to the alertcontorller?

From the UIAlertController Class Reference: "The view hierarchy for this class is private and must not be modified."

add subview to uialertcontroller
 
 
Q