SVStatusHUD icon indicating copy to clipboard operation
SVStatusHUD copied to clipboard

Dismiss makeKeyAndVisible

Open skajake opened this issue 12 years ago • 0 comments

The dismiss method looks at [UIApplication sharedApplication].windows.lastObject and calls makeKeyAndVisible on that object. The problem is that sometimes UIKit will throw a UITextEffectsWindow onto the stack. The problem? When dismissing this private object gets makeKeyAndVisible called. This results in any firstResponders on the actual UIWindow cease working. Text input on textfields and textviews stops working, etc.

My proposed fix, is to more intelligently decide which window object to makeKeyAndVisible. Perhaps filter out private objects such as UITextEffectsWindow when making this decision.

skajake avatar Nov 01 '12 15:11 skajake