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

问题描述

我正在为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