objective-c iPhone 图片幻灯片

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/1631170/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-09-03 22:25:10  来源:igfitidea点击:

iPhone Image slideshow

iphoneobjective-cslideshow

提问by Ptitaw

I want to create a slideshow on iphone. I don't know if there is already a sample code or a lib that already do that.

我想在 iphone 上创建幻灯片。我不知道是否已经有示例代码或已经这样做的库。

Thanks for your help

谢谢你的帮助

回答by avelis

Joe Hewitt who created the Facebook iPhone app open sourced the code he wrote to create the Facebook application. Most notable is his image viewer that he created. I am certain if you checkout his work you can find what you are looking for. His project lives on github.

创建 Facebook iPhone 应用程序的 Joe Hewitt 开源了他编写的用于创建 Facebook 应用程序的代码。最值得注意的是他创建的图像查看器。我敢肯定,如果你查看他的作品,你会找到你要找的东西。他的项目存在于 github 上。

https://github.com/facebook/three20/

https://github.com/facebook/three20/

Reference to his work from his website:

从他的网站参考他的作品:

http://joehewitt.com/post/the-three20-project/

http://joehewitt.com/post/the-three20-project/

回答by ma11hew28

Check out the WWDC 2010 Session entitled "Designing Apps with Scroll Views."

查看题为“使用滚动视图设计应用程序”的 WWDC 2010 会议。

The source code is here:

源代码在这里:

http://developer.apple.com/library/ios/#samplecode/PhotoScroller/Introduction/Intro.html

http://developer.apple.com/library/ios/#samplecode/PhotoScroller/Introduction/Intro.html

And this is a handy image-slicing tool:

这是一个方便的图像切片工具:

http://iphonedevelopment.blogspot.com/2010/10/cutting-large-images-into-tiles-for.html

http://iphonedevelopment.blogspot.com/2010/10/cutting-large-images-into-tiles-for.html

回答by Morion

If you just want to show different pictures one by one, you can simply use, for example, NSTimer, that will change content of your image view. It doesn't need any lib.

如果你只想一张一张地显示不同的图片,你可以简单地使用,例如,NSTimer,它会改变你的图像视图的内容。它不需要任何库。