本文介绍了苹果手表场景背景卷轴的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在为 Apple 的新 iWatch 开发应用程序.

I am developing an app for Apple's new iWatch.

作为其 iWatch 应用程序,我们必须使用具有有限控制的 storyboard.

As its iWatch appilcation we must use storyboard with limited controls.

我们的图形团队要求在 storyboard 的所有 scenes 中设置背景.

Our graphics team is asking to set Background in all the scenes in the storyboard.

我们已经成功设置了 sceneBackground 属性,但问题是当屏幕滚动时,背景图像也会滚动.

We have successfully set Background property of scene but problem is when screen scrolls the background image also scrolls.

所以我的问题很简单,我只是想让 scene 上的 groups 滚动而不是我设置为场景的 Background.

So my problem is simple i just want groups on my scene to scroll not the Background i set to scene.

提前致谢.

推荐答案

简短的回答是否定的.这个答案指的是表格背景,但在这里同样适用.https://stackoverflow.com/a/29610011/3704092

The short answer is no. This answer was referring to table background, but is equally applicable here. https://stackoverflow.com/a/29610011/3704092

WatchKit 不允许您在 UI 元素上设置 z-index,而这正是您实现所需效果所需要的.

WatchKit doesn't allow you to set z-index on UI elements, which is what you would need to pull off the effect you're looking for.

这篇关于苹果手表场景背景卷轴的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

08-11 01:10