iOS 8 Keyboard Dismissed delay after modal view controller is dismissed

前端 未结 2 587
囚心锁ツ
囚心锁ツ 2021-01-11 13:02

In iOS 8+ I noticed that if you have an textfield that is currently the firstResponder in a view controller that was presented, when the view controller is dism

2条回答
  •  既然无缘
    2021-01-11 13:17

    According to this, in iOS 8 it seems the view doesn’t resign first responder status until it’s actually offscreen.

    http://prod.lists.apple.com/archives/cocoa-dev/2014/Sep/msg00391.html

    Our workaround is to call [self.view endEditing:YES] in -viewWillDisappear.

提交回复
热议问题