0

I have a controller with textview and button, when I tap on one of the textview it's prompts an alertview which contains textbox, OK button, and cancel button.

After entering this screen tap on any of the textview so that it alertview with textview prompts with keyboard.

Now I'm going to background on entering foreground a black screen with alertview and keyboard will display.

On dismissing alertview, the screen is displayed properly.

Why this is happening? Any solution?

Eric Aya
  • 69,473
  • 35
  • 181
  • 253
user1256276
  • 133
  • 1
  • 1
  • 14

1 Answers1

0

Try this solutions:

use definesPresentationContext to true, works for me with similar problem.

In

viewDidLoad()

add

definesPresentationContext = true
karthikeyan
  • 3,821
  • 3
  • 22
  • 45
KKRocks
  • 8,222
  • 1
  • 18
  • 84