I am not sure what you mean with the "modal dialogue". I assume that you are referring to either a modally presented presentation controller with a UIModalPresentationFormSheet modal style, or using a UIPopoverController.
Here is my best guess: I'm sure your “modal dialog” captures all user interactions (by default). Therefore, when you press the first one, it captures all the input focus. When you press the second one, it captures conflicts with the previous one, and therefore the keyboard does not work.
In any case, both types of “modal dialogs” should not be stacked. Even if it can work technically, I don’t like how it forms the perspective of interaction. Instead of trying to fix the error or work around it, try rethinking your modal dialogue. You can put everything in one. For example, using the navigation controller inside this view or replacing the view or spilling its contents ... etc.
Hope this helps, Max
source share