简体   繁体   English

如何允许用户在“越界”视图上进行交互?

[英]How can I allow user interaction on a “out of bounds” view?

I am developing a mobile app on iOS and I'm trying to work with a hidden menu which shows up when the user taps an input.我正在 iOS 上开发一个移动应用程序,我正在尝试使用一个隐藏菜单,该菜单在用户点击输入时显示。 I am using a container view that is hidden and has UITableViewController inside.我正在使用一个隐藏的容器视图,里面有 UITableViewController。 Here is an screenshot of the storyboard.这是 storyboard 的屏幕截图。

Here's an screenshot of the storyboard.这是 storyboard 的屏幕截图。 The selected one is the container view.选中的是容器视图。

Here's a Video to show what's happening. 这是一个视频,显示正在发生的事情。 As you can see only de little part that is inside the view in the storyboard can be clicked.如您所见,只能单击 storyboard 中视图内的一小部分。

Is there any way to make the rest of the container view respond to user interactions, without having to change de size of the view controller?有什么方法可以让容器视图的 rest 响应用户交互,而无需更改视图 controller 的大小?

I have checked your issue you can use this to animate your view https://github.com/nathangitter/interactive-animations我已经检查了您的问题,您可以使用它来为您的视图设置动画https://github.com/nathangitter/interactive-animations

This is very simple and easy way to add this animation.这是添加此 animation 的非常简单的方法。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM