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];
The reported issue persists in the iOS 15 GM version also.
Adding to the aforementioned points the above-reported issue got replicated in the same iPhone 12 device running with IOS 14 as well. Hence it is a device-specific issue.