我有一个 UIWindow,里面有一个硬编码的 UIView。我更愿意保持这种状态,有没有一种好的方法可以旋转已经可见的键盘? This question要求同样的事情,所以我想我真的在问 UIViewController 用于旋转键盘的 API 是否是私有(private) API。如果是的话我不会使用它,但我仍然对它是什么感兴趣。以及你是如何发现的。谢谢!
最佳答案
UIViewController 为你处理旋转,你真的应该使用一个。不要尝试重新发明轮子,坚持最佳实践,您将避免很多不必要的工作。
The UIViewController class is the base class for all view controller objects. It provides default functionality for loading views, presenting them, rotating them in response to device rotations, and several other standard system behaviors
关于ios - 如何在没有 UIViewController 的情况下旋转可见的 iOS 键盘,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/9318899/