在 tvOS 的 UICollectionView 中反转滚动 [英] Invert Scrolling in UICollectionView of tvOS

查看:31
本文介绍了在 tvOS 的 UICollectionView 中反转滚动的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在我的 tvOS 应用中,我有一个 UICollectionView.当我在 Siri Remote 上从上到下滚动时,它会将视图向下移动.这与大多数集合视图的工作方式相反.我希望它表现得像一个触控板,当你从下到上滚动时,让它向下移动集合视图.如何反转这种滚动行为?

In my tvOS app, I have a UICollectionView. When I scroll from top to bottom on the Siri Remote, it it moves the view down. This is the opposite of how most Collection Views would work. I want it to behave like a trackpad, when you scroll from bottom to top, have it move the collection view down. How can I invert this scrolling behavior?

推荐答案

您不想脱离 Apple TV 标准.您制作 tvOS 应用程序的目标不是创建一个完全不同的软件,而是让您的应用程序感觉像是 Apple TV 的扩展.当用户打开您的应用并且一切都按照他们的预期运行时,这会创造更好的用户体验.

You don't want to move away from Apple TV standards. Your goal in making a tvOS application is not to create an entirely different piece of software, but to make your application feel like an extension of the Apple TV. This creates a better user experience when users open your app and everything behaves just as they expect.

这篇关于在 tvOS 的 UICollectionView 中反转滚动的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆