KO
|
EN
gitlite — search
Search
#javascript
#python
#hacktoberfest
#react
#ai
#typescript
#llm
#go
#golang
#android
#machine-learning
#rust
#deep-learning
#linux
CXCarousel
★ 13
Open GitHub ↗
一个方便的滚播图控件
Download README (.md)
Explore Similar Repositories
sqrtOram
:
No description available.
hydra
:
A Scale Testing infra using Mesos and marathon
atpg
:
An automatic test pattern generation (ATPG) and fault simulation system.
directShare
:
Tiny P2P File Sharing in C#
TextViewDemo
:
安卓快速实现关键字变色,搜索字变红,点击字体打电话,textview斜体,电商价格删除线,绿色下划线,图片(表情,图文混排) textview超链接跳转
// repository documentation
Was this content helpful?
★ 0
(0 ratings)
Select Rating:
★
★
★
★
★
Submit Feedback
Recent Feedback
×
Download README
Do you want to download the
README.md
file for
CXCarousel
?
Download (.md)
# CXCarousel 一个方便的滚播图控件 ## 更新 #####去掉了一些重复的方法,简化接口的使用。 #####去掉dertroy方法和restart方法,简化使用,而且不用担心对象不能被正常释放。  ## 说明 可以使用传入本地图片和传入url的方式。传入url会将图片进行缓存。用的是sdWebimage,所以这个要有。 ## 本地和网络图片都可以使用,网络图片传入url即可。 可以设置是否自动滑动,和滑动的时间间隔。如果设置了自动滑动,离开页面时要调用destroy函数来销毁定时器,在此进入时使用restart启动定时器。 ``` self.carousel = [CXCarouselView initWithFrame:CGRectMake(0, 20, DeviceWidth , 200) hasTimer:YES interval:3 placeHolder:[UIImage imageNamed:@"loading"]]; [self.view addSubview:self.carousel]; NSArray *array = @[@"img1",@"img2",@"img3"]; [self.carousel setupWithArray:array]; ``` ##响应点击事件 ``` self.carousel.delegate = self; - (void) carouselTouch:(CXCarouselView*)carousel atIndex:(NSUInteger)index; ```