开发者

when will [UIViewController disablesAutomaticKeyboardDismissal] be called?

开发者 https://www.devze.com 2023-04-12 13:25 出处:网络
any ex开发者_运维知识库ample for how to use this? I can\'t understand the document.This is only about a view controller presented using UIModalPresentationFormSheet. In that case, a text field resigni

any ex开发者_运维知识库ample for how to use this? I can't understand the document.


This is only about a view controller presented using UIModalPresentationFormSheet. In that case, a text field resigning first responder will not cause the keyboard to be dismissed unless you override disablesAutomaticKeyboardDismissal to return NO.


The rest of the framework will call it at an undefined time before they need to know if the view controller in question disables automatic keyboard dismissal. Since your implementation of a UIViewController subclass (where you are meant to override it) should return either always YES or always NO, it doesn't matter when it's called.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号