开发者

Weird Keyboard behavior when the device rotates

开发者 https://www.devze.com 2023-01-05 19:01 出处:网络
This is something that happens to me rea开发者_StackOverflowlly often. I have a textfield in a table view cell, when I try to edit the textfield the keyboard appears, and when I rotate the device from

This is something that happens to me rea开发者_StackOverflowlly often. I have a textfield in a table view cell, when I try to edit the textfield the keyboard appears, and when I rotate the device from landscape to portrait, this is what I get.

Any ideas? Thanks in advance.

Weird Keyboard behavior when the device rotates


Thank you for the uncountable amount of comments and answers jejejeje apparently this was my mistake.

This behavior occurs when you have a focused textField into a cell, and force table to reload using [tableView reloadData]; on a rotation event, like shouldRotateInterfaceOrientation: or didRotateFromInterfaceOrientation:

hope this helps to someone.

0

精彩评论

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