The line separator is missing in the alert controller. I am encountering this issue only in the iPhone 12 series devices running iOS 15, in the other versions it works fine. Please share your inputs.
Screen capture from iPhone 12 (Line separator is absent)
Screen capture from iPhone 11
Here, I have annotated the line separator with a red color box.
UIAlertController* alert = [UIAlertController alertControllerWithTitle:@"My title" message:@"My subtitle" preferredStyle:UIAlertControllerStyleAlert]; UIAlertAction* defaultAction = [UIAlertAction actionWithTitle:@"OK" style:UIAlertActionStyleDefault handler:^(UIAlertAction * action) {}]; [alert addAction:defaultAction]; [m_window.rootViewController presentViewController:alert animated:YES completion:nil];