如何在IOS SDK中获得带文字的老虎机效果?
我需要创建一个单词列表,然后从上到下滑动时让单词在老虎机效果中循环。
我无法解决的唯一问题是滚动文本部分。 UIPICKERVIEW 不会循环(另外我一次只需要显示一个选项)。我已经寻找了与此相关的示例和/或教程,但没有找到任何可以直接指出我正确方向的内容。
有人知道教程或对我可以开始或进一步研究有什么建议吗?谢谢。
I need to create a list of words then have the words cycle through in a slot machine effect when swiped from top to bottom.
the only issues I'm having problems figuring out is the scrolling text part. UIPICKERVIEW doesn't cycle around (plus I need to only show one option at a time). I've hunted for examples and/or tutorials regarding this but haven't found anything that points me in the right direct.
Anyone know of a tutorial or have suggestions where I can get started or further my research? thanks.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您可以使用 iCarousel 来实现此目的:
https://github.com/nicklockwood/iCarousel
运行基本 iOS 演示并选择垂直方向的圆柱轮播类型并打开包裹。如果这看起来像您想要的,文档将解释如何在项目中设置它。
You could use iCarousel for this:
https://github.com/nicklockwood/iCarousel
Run the Basic iOS Demo and select the Cylinder carousel type in vertical orientation with wrap on. If that looks like what you want, the documentation will explain how you can set it up in your project.