图片轮播框架 XRCarouselView

码农软件 · 软件分类 · 滚动视图(ScrollView) · 2019-06-03 19:56:59

软件介绍

XRCarouselView是一款超简单好用的图片轮播框架,仅仅两个imageView实现图片轮播。

XRCarouselView的优点

  • 文件少,代码简洁

  • 不依赖任何其他第三方库,耦合度低

  • 同时支持本地图片及网络图片

  • 可修改分页控件位置,显示或隐藏

  • 自定义分页控件的图片,就是这么个性

  • 自带图片缓存,一次加载,永久使用

  • 性能好,占用内存少,轮播流畅

如何集成XRCarouselView

手动导入

将XRCarouselView文件夹中的所有文件添加到项目中

cocoapods导入

pod 'XRCarouselView'

使用

  • 导入主头文件 XRCarouselView.h

  • 创建XRCarouselView,设置图片(路径)数组

  • 将XRCarouselView添加到要展示到view上面

XRCarouselView的常用属性方法

  • imageArray:要轮播的图片数组,可传本地图片或网络图片路径

  • time:设置每页的停留时间

  • pageContolPosition:设置分页控件的位置

  • pageControlHidden:隐藏分页控件

  • setPageImageView:andCurrentImage::设置分页控件的图片

  • void(^imageClickBlock)(NSInteger index):图片被点击后要执行的代码

效果演示

本文地址:https://www.codercto.com/soft/d/7188.html

Practical Algorithms for Programmers

Practical Algorithms for Programmers

Andrew Binstock、John Rex / Addison-Wesley Professional / 1995-06-29 / USD 39.99

Most algorithm books today are either academic textbooks or rehashes of the same tired set of algorithms. Practical Algorithms for Programmers is the first book to give complete code implementations o......一起来看看 《Practical Algorithms for Programmers》 这本书的介绍吧!

图片转BASE64编码
图片转BASE64编码

在线图片转Base64编码工具

Base64 编码/解码
Base64 编码/解码

Base64 编码/解码

URL 编码/解码
URL 编码/解码

URL 编码/解码