简体   繁体   English

在没有动画的情况下在iOS中显示键盘

[英]Showing a keyboard in iOS without animating

Does anyone know if there is a way to show the keyboard in iOS without animating it? 有谁知道是否有一种方法可以在不显示动画的情况下在iOS中显示键盘? Or better yet, can you change the animation speed? 还是更好,您可以更改动画速度吗?

Thanks 谢谢

The only way I know of, is pushing a view controller which has a view which is made first responder in -viewDidLoad . 我知道的唯一方法是推送一个具有视图的视图控制器,该视图在-viewDidLoad成为第一响应者。 ( viewWillAppear will probably do fine as well) viewWillAppear可能也会做得很好)

Pushing it without animation might get you a keyboard popping up without animation. 在没有动画的情况下按下它可能会弹出一个没有动画的键盘。

update too bad, it seems either the view animates into screen (modally or pushed on the navigation stack, with animated:YES ) with the keyboard fixed, or the view comes up without animation (ie animated:NO ) making the keyboard animate into screen again. 更新太糟糕了,似乎是在固定键盘的情况下将视图动画化了(以动画方式(或animated:YES )或推入导航堆栈, animated:YES在导航堆栈上),或者是在没有动画的情况下出现了视图(即animation animated:NO ),从而使键盘动画了。再次。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM