键盘隐藏问题

ios8 alert view导致回退键盘闪现的解决
 
“因为键盘收起是有动画的。而你在键盘收起的动画开始的时候就pop了,键盘的动画没有执行完当然要在下一个vc里继续执行。所以你要等键盘完全收起之后再pop或者push。直接dispatch_after个0.25秒再执行pop或者push。至于为什么是0.25秒,因为系统键盘收起的duration就是0.25秒。别问我怎么知道的。”
“iOS 8.3,dismiss alert view时系统会尝试恢复之前的keyboard input”
在 UIAlertView的代理
-(void)alertView:(UIAlertView*)alertView didDismissWithButtonIndex:(NSInteger)buttonIndex 替代
//-(void)alertView:(UIAlertView*)alertView clickedButtonAtIndex:(NSInteger)buttonIndex
posted @ 2016-02-25 16:35  小于0813  阅读(140)  评论(0编辑  收藏  举报