Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我想要一个处于横向模式的视图在编辑文本字段时向上移动(因为它被键盘覆盖),问题是我没有正确设置坐标,因为视图向左移动上升,似乎 X 值被 Y 值和画外音改变了。我究竟做错了什么?我怎样才能解决它?风景模式有什么特殊代码吗?
代码:
self.view.frame = CGRectMake(0, -160, 300, 480);
非常感谢!!
通常最乏味的错误是我们从不寻找的错误。:P
self.view.frame = CGRectMake(0, -160, 480, 300);