iOS pop到前一个页面时键盘闪一下的问题
来源:互联网 发布:parseint javascript 编辑:程序博客网 时间:2024/06/06 14:01
当前页面有textfield 并且使用了UIAlertView,并在
-(void)alertView:(UIAlertView *)alertView clickedButtonAtIndex:(NSInteger)buttonIndex方法中进行了
[self.navigationControllerpopViewControllerAnimated:YES];操作,返回到前一页面时会产生键盘闪一下的问题,解决办法如下:
if ([UIDevicecurrentDevice].systemVersion.floatValue >=8.0) {
UIAlertController *alert = [UIAlertControlleralertControllerWithTitle:@"温馨提示"message:@"注册成功"preferredStyle:UIAlertControllerStyleAlert];
UIAlertAction *action = [UIAlertActionactionWithTitle:@"确定"style:UIAlertActionStyleDefaulthandler:^(UIAlertAction *_Nonnull action) {
[self.navigationControllerpopViewControllerAnimated:YES];
}];
[alert addAction:action];
[selfpresentViewController:alert animated:YEScompletion:nil];
}else
{
UIAlertView *alertView = [[UIAlertViewalloc] initWithTitle:@"温馨提示"message:@"注册成功"delegate:selfcancelButtonTitle:@"确定"otherButtonTitles:nil,nil];
[alertView show];
}
- iOS pop到前一个页面时键盘闪一下的问题
- iOS8 UIAlertView pop/push页面后,键盘闪一下的问题
- iOS pop到指定的页面
- iOS pop到指定页面
- 返回到前一个页面时显示前一个页面中ajax获取的数据
- iOS 如何pop到指定页面
- iOS 如何pop到指定页面
- iOS 导航pop到指定页面
- iOS 如何pop到指定页面
- iOS 如何pop到指定页面
- iOS8 UIAlertView键盘闪一下的问题
- navigationController在pop时,指定pop到某个页面
- pop到指定页面
- pop到指定页面
- iOS-pop到想要的界面
- ios navi push到下一页面,然后pop返回出现的一个bug
- iOS陆先森开发随笔(四)tablview点击push到下一个页面,pop出来时位置下移问题
- 关于iOS的pop出栈问题
- js图片轮播手动切换
- 随意细解:UI -- MVC、通知
- ====imageview的屏幕适配
- Unity3d实现画笔
- R语言作图的基本用法
- iOS pop到前一个页面时键盘闪一下的问题
- servlet获取httpPost请求中的JSON数据
- 已知圆心,半径,角度,求圆上的点坐标
- [iOS]arc4random_uniform()函数
- Android Studio上方便使用butterknife注解框架的偷懒插件Android Butterknife Zelezny
- ViewPager -- Fragment 切换卡顿 性能优化
- 三方依赖库在Cocoapods上的制作流程2015年版
- Codeforces Round #335 (Div. 1) A. Sorting Railway Cars
- 批处理(.bat)学习笔记