XBBannerView-swift 基于collectionView的无限循环图片滚动框(基于swift3) 要添加功能,子类重写setParamsWithIndex方法即可 //子类重写,index即为当前图片序号 func setParamsWithIndex(index:NSInteger) -> Void { } 使用参考example