简体   繁体   中英

ios - Hide a view but still enable user interaction on it

TL;DR: Is it possible to hide a view but keep the interaction on it enabled?

The case I'm facing is that I'm running an AR session with a AR SceneView which allows for the user to drop blocks and other items onto the screen. I also am able to render this AR SceneView to a video. My issue is that while I'm rendering the video, my AR objects seem to speeding up. I've determined that this is a problem with the renderer forcing the sceneview to speed up to the rate at which it's generating images.

I have access to these images and figured a decent solution would be to display an ImageView and hide the sceneview while I'm recording, so that I can constantly update the image view with the latest snapshot from the AR, but the issue with that becomes that I can't click on my AR SceneView anymore to add objects to the AR Scene. So if I can hide the sceneview but still allow touches on it that would essentially fix my problem.

Any help would be appreciated

而不是隐藏视图,为什么不将背景色设置为清除

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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