84669 person learning
152542 person learning
20005 person learning
5487 person learning
7821 person learning
359900 person learning
3350 person learning
180660 person learning
48569 person learning
18603 person learning
40936 person learning
1549 person learning
1183 person learning
32909 person learning
我的tableview中有3个cell,每个cell中都是textfield现在出现了一个神奇的现象,当点击textfield输入文字时,切换到其他textfield,之前的textfield中的文字会闪一下,&&前三次会出现这样的情况,在之后就正常了,这是为什么呢?
人生最曼妙的风景,竟是内心的淡定与从容!
Set a delegate for textfield and try it
- (void)textFieldDidEndEditing:(UITextField *)textField { [textField layoutIfNeeded]; //Fixes iOS 9 text bounce glitch //...other stuff }
I referred here
Master, I found the reason. The problem occurred here. I wrote this line of code when the keyboard pops up to change the view position.self.view.layoutIfNeeded()After deleting this sentence, it will be fine. Thank you, Master
self.view.layoutIfNeeded()
Set a delegate for textfield and try it
I referred here
Master, I found the reason. The problem occurred here. I wrote this line of code when the keyboard pops up to change the view position.
self.view.layoutIfNeeded()
After deleting this sentence, it will be fine. Thank you, Master