UIImageView中的简单幻灯片(Simple slideshow in a UIImageView)

编程入门 行业动态 更新时间:2024-10-26 00:20:59
UIImageView中的简单幻灯片(Simple slideshow in a UIImageView)

我无法将幻灯片添加到我的应用程序中。

目前,我有一个由segmentedControl组成的UIView。 我根据所选按钮隐藏或显示了两个“视图”。

我想在我的两个视图之一中制作一个简单的幻灯片。 我制作了一个UIImageView,因为它很容易显示图片。

所以我想逐个显示我的图片,可以通过向右或向左滑动手指从一个图像移动到另一个图像(就像在本机应用程序“照片”中一样)。

我试图从文档中修改示例代码,但没有成功。

所以我想寻求帮助。

谢谢,jb crestot

I got trouble to add slideshow to my application.

Currently, I have a UIView composed of a segmentedControl. I made ​​two "views" that I hide or display depending on the selected button.

I'm looking to make a simple slideshow in one of my two views. I made a UIImageView because it is simple to display pictures.

So I'd like to display my pictures one by one and it is possible to move from one image to another by sliding your finger to the right or left (just as in the native app "Photos").

I tried to adapt example codes from the documentation, but without succes.

So I'ml looking for help.

Thanks, jb crestot

最满意答案

请参阅apple的页面控件示例应用程序。

See apple's page control sample application.

更多推荐

本文发布于:2023-07-31 23:24:00,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1348579.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:幻灯片   简单   UIImageView   Simple   slideshow

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!