本文介绍了在iCarousel的iCarouselTypeRotary视图中隐藏图像的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我已经在中设置了图片。滚动轮播时,它会在前后显示图像。我不想在后面显示图像。请帮忙。谢谢。
I have set images in iCarousel. When I scroll the carousel, it shows images in front and back. I do not want to display images in back. Please help. Thank you.
推荐答案
您需要更改为自定义轮播类型,然后在您的委托中复制iCarouselTypeRotary的实现。然后实现 -carousel:itemAlphaForOffset:
,以使后面的项目的alpha值为零。
You'll need to change to a custom carousel type, and copy the implementation of iCarouselTypeRotary in your delegate. Then implement -carousel:itemAlphaForOffset:
so that items around the back have an alpha of zero.
这篇关于在iCarousel的iCarouselTypeRotary视图中隐藏图像的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!