##使用方法方便简单
###BHInfiniteScrollView* infinitePageView = [BHInfiniteScrollView infiniteScrollViewWithFrame:frame Delegate:delegate ImagesArray:图片数组]; #其中图片数组同时支持:网络连接,本地图片名字或者UIImage。
###滚动方向 BHInfiniteScrollViewScrollDirection BHInfiniteScrollViewScrollDirectionHorizontal, /** 水平滚动*/ BHInfiniteScrollViewScrollDirectionVertical, /** 垂直滚动*/
@property (nonatomic, assign) BOOL reverseDirection;
###Page Control 水平方向布局 BHInfiniteScrollViewPageControlAlignHorizontal BHInfiniteScrollViewPageControlAlignHorizontalCenter, /** page control 布局 水平居中*/ BHInfiniteScrollViewPageControlAlignHorizontalRight, /** page control 布局 水平靠右*/ BHInfiniteScrollViewPageControlAlignHorizontalLeft, /** page control 布局 水平靠左*/
###Page Control 垂直方向布局 BHInfiniteScrollViewPageControlAlignVertical BHInfiniteScrollViewPageControlAlignVerticalCenter, /** page control 布局 垂直居中*/ BHInfiniteScrollViewPageControlAlignVerticalTop, /** page control 布局 垂直靠上*/ BHInfiniteScrollViewPageControlAlignVerticalButtom, /** page control 布局 垂直靠底*/
@property (nonatomic, assign) BOOL infiniteLoop;
- 在
Podfile
中添加pod 'BHInfiniteScrollView'
。 - 执行
pod install
或pod update
。注意:如果遇到"Unable to find a pod with name matching"错误,需要先 'pod setup' 更新缓存 - 导入
<BHInfiniteScrollView/BHInfiniteScrollView.h>
。
该项目最低支持 iOS 6.0+
和 Xcode 7.0
。
BHInfiniteScrollView 使用 MIT 许可证,详情见 LICENSE 文件。
BHInfiniteScrollView* infinitePageView = [BHInfiniteScrollView infiniteScrollViewWithFrame:frame Delegate:delegate ImagesArray:array]; #array support :url string,local image name string or UIImage。
BHInfiniteScrollViewScrollDirectionHorizontal, /** horizontal scroll*/
BHInfiniteScrollViewScrollDirectionVertical, /** vertical scroll*/
@property (nonatomic, assign) BOOL reverseDirection;
###Page Control horizontal layout BHInfiniteScrollViewPageControlAlignHorizontal BHInfiniteScrollViewPageControlAlignHorizontalCenter, /** page control layout horizontal center*/ BHInfiniteScrollViewPageControlAlignHorizontalRight, /** page control layout horizontalRight*/ BHInfiniteScrollViewPageControlAlignHorizontalLeft, /** page control layout horizontalLeft*/
###Page Control vertical layout BHInfiniteScrollViewPageControlAlignVertical BHInfiniteScrollViewPageControlAlignVerticalCenter, /** page control layout verticalcenter*/ BHInfiniteScrollViewPageControlAlignVerticalTop, /** page control layout verticalTop*/ BHInfiniteScrollViewPageControlAlignVerticalButtom, /** page control layout verticalButtom*/
@property (nonatomic, assign) BOOL infiniteLoop;
- Add
pod 'BHInfiniteScrollView'
to your Podfile. - Run
pod install
orpod update
. - Import <BHInfiniteScrollView/BHInfiniteScrollView.h>.
This library requires iOS 6.0+
and Xcode 7.0+
.
BHInfiniteScrollView is provided under the MIT license. See LICENSE file for details.