我想设计滚动图像,如下图所示。 你能帮我完成这项任务吗?
答案 0 :(得分:0)
您可以使用iCarousel来达到同样的效果。 它是一个惊人的第三方图书馆。 它可以很容易地实现,就像一个魅力。 实现iCarouselDataSource协议中定义的方法
- (NSUInteger)numberOfItemsInCarousel:(iCarousel *)carousel;//Return the number of items (views) in the carousel.
- (UIView *)carousel:(iCarousel *)carousel viewForItemAtIndex:(NSUInteger)index reusingView:(UIView *)view; // return views for specific carousel.
iCarousel支持许多内置显示类型。 iCarouselTypeTimeMachine或iCarouselTypeInvertedTimeMachine显示类型符合您的要求。
iCarousel有许多预定义的属性,您可以使用它们来获取所需的结果。
您可以查看iCarousel here。