UIView UIPinchGestureRecognizer 问题
我有一个 UIViewController 包含一个 UIScrollView , UIScrollView 包含一个 UIImageView ,我有我的手势识别器点击和捏合。当 UIView 在另一个视图中调用时,它会变成全屏,当我的 UIView 双击时,它会隐藏自己,主视图会再次出现。捏之前没问题。 UIPinchGestureRecognizer 不工作。我不认为它的响应者问题,因为点击有效。我认为它是关于设置 MultipleTouchEnabled 值(但不确定)。如果它具有像我这样的结构(UIViewController->UIScrollView->UIImageView),则需要将哪些视图设置为启用 MultipleTouch。我的 UIPinchGestureRecognizer 目标是用于捏合和点击的 UIViewController (自身)。
如果有帮助,我可以发布我的代码所需的部分。
谢谢。
I have an UIViewController contains an UIScrollView and UIScrollView contains an UIImageView, and I have my Gesture Recognizers tap and pinch. When UIView called inside another view it becomes fullscreen, and when my UIView double tapped it hides itself and main view appears again. No problem till pinching. UIPinchGestureRecognizer not working. I dont think its responder problem because, tapping works. I think its about setting MultipleTouchEnabled values (but not sure). if its with a structure like mine (UIViewController->UIScrollView->UIImageView) which views needs to be set as MultipleTouch enabled. My UIPinchGestureRecognizer target is UIViewController (self) for both pinch and tap.
if it will help I can post needed part of my code.
thank you.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
尝试设置
try setting