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.
这是我经常发生的事情。我在表格视图单元格中有一个文本字段,当我尝试编辑文本字段时,键盘会出现,当我将设备从横向旋转到纵向时,这就是我得到的。
有任何想法吗?提前致谢。
感谢您无数的评论和回答jejejeje显然这是我的错误。
当您将焦点文本字段放入单元格并使用 [tableView reloadData] 强制表重新加载时,会发生此行为;在旋转事件上,例如 shouldRotateInterfaceOrientation: 或 didRotateFromInterfaceOrientation:
希望这对某人有所帮助。