项目介绍:
一个轻量级的轮播图,使用简单。github地址: https://github.com/sinexy/YXCarouselView
只用实现两个数据源方法和一个代理方法,基本可满足日常开发需要
– (NSInteger)numberOfItemsInCarouselView:(YXCarouselView *)carouselView;– (UIView *)carouselView:(YXCarouselView *)carouselView viewForItemAtIndex:(NSInteger)index;
– (void)carouselView:(YXCarouselView *)carouselView didSelectedIndex:(NSInteger)index;
具体使用方法见 Demo