UISplitViewController劫持的iOS 5.1滑动手势-如何避免? [英] iOS 5.1 swipe gesture hijacked by UISplitViewController - how to avoid?

查看:105
本文介绍了UISplitViewController劫持的iOS 5.1滑动手势-如何避免?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

iOS 5.1中与UISplitViewController应用相关的新行为似乎是拦截了UISlider运动,并产生了不良结果.这可能也适用于UISegmented控件和其他处理左右手势的控件表面.

A new behavior in iOS 5.1 related to UISplitViewController apps seems to be intercepting UISlider motion with undesired results. This might also apply to UISegmented Controls and any other control surface that handles left-to-right gestures.

在纵向方向上使用UISplitView时,通常隐藏主视图.从iOS 5.1开始,在屏幕上向右滑动即可在设备左侧调出主视图.问题是,将UISlider控件的拇指滑动误解为屏幕轻扫:如果我向右滑动UISlider拇指,则将弹出主"面板.

With a UISplitView in Portrait orientation, the Master view is normally hidden. Starting in iOS 5.1 a right swipe on screen brings up the Master View on the left side of the device. The problem is, sliding the thumb of my UISlider control is misinterpreted as a screen swipe: if I give the UISlider thumb a sharp push to the right, the Master panel pops up.

在我的应用中,桥接Master视图会产生不希望有的副作用(和性能问题).

In my app, there are undesired side-effects (and performance issues) with brining up the Master view.

我认为此行为是Apple的错误.任何想法如何解决呢?我可以以某种方式让UISlider捕获手势并对其进行处理,而无需将其传递到响应者链上吗?

I consider this behavior an Apple bug. Any ideas how to work around it? Can I somehow have the UISlider capture the gesture and process it, without passing it up the responder chain?

在此先感谢您的见解!

推荐答案

Apple确认该问题与先前正在调查的先前报告的错误重复(错误ID#10170209).

Apple confirmed the issue as a duplicate of a previously reported bug that is currently under investigation (Bug ID# 10170209).

目前,解决方法似乎工作正常.

The workaround seems to be functioning fine for now.

这篇关于UISplitViewController劫持的iOS 5.1滑动手势-如何避免?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆