Software⏱️ 2 min read📅 2026-06-03

How to Fix: iPad keyboard will not dismiss if modal ViewController presentation style is UIModalPresentationFormSheet

iPad keyboard won't dismiss when presented in a modal view controller with UIModalPresentationFormSheet style.

Quick Answer: Try using `UIModalPresentationAutoAdaptive` or `UIModalPresentationOverCurrentContext` instead of `UIModalPresentationFormSheet` to resolve the issue.

The iPad keyboard refuses to be dismissed when presented in a modal dialog with a navigation controller. This behavior is caused by the modal presentation style set to UIModalPresentationFormSheet.

🚀 How to Resolve This Issue

Method 1: Disabling the FormSheet Presentation Style

  1. Step 1: Change the modal presentation style to UIModalPresentationOverFullScreen or UIModalPresentationCoverCurrentScreen.

Method 2: Using a Custom ViewController

  1. Step 1: Create a new ViewController that conforms to the UIModalPresentationControllerDelegate protocol.

✨ Wrapping Up

By applying one of these methods, you can resolve the issue and dismiss the keyboard correctly when presented in a modal dialog with a navigation controller.

Did this fix your problem?

If not, try searching for specific error codes.

🔍 Search Error Database

❓ Frequently Asked Questions