Latest 0.0.1
Homepage https://github.com/chenqing512/CRZScrollview
License MIT
Platforms ios 8.0
Dependencies SDWebImage
Authors

使用方式

pod ‘CRZScrollview’,’~0.0.1′

防止循环引用

[CRZWeakTarget weakTarget:self] 弱化target,防止timer循环引用

self.timer=[NSTimer timerWithTimeInterval:self.intervalTime target:[CRZWeakTarget weakTarget:self] selector:@selector(timerTick) userInfo:nil repeats:YES];

 使用方式

ImageUrls:NSURL的数组

CRZScrollview *scrollView = [[CRZScrollview alloc]initWithFrame:CGRectMake(0, 100, self.view.frame.size.width, 200) ImageUrls:@[url,ur2,ur3] IntervalTime:2];
scrollView.delegate = self;
[self.view addSubview:scrollView];

代理方法

-(void)CRZScrollview:(CRZScrollview *)scrollview selected:(NSInteger)index

Latest podspec

{
    "name": "CRZScrollview",
    "version": "0.0.1",
    "summary": "A short description of CRZScrollview.",
    "description": "u521bu5efau4e09u4e2aUIImageViewuff0cu5faau73afu590du7528uff0cu5b9eu73b0u8f6eu64adu6548u679c",
    "homepage": "https://github.com/chenqing512/CRZScrollview",
    "license": {
        "type": "MIT",
        "file": "LICENSE"
    },
    "authors": {
        "chenqing512": "[email protected]"
    },
    "source": {
        "git": "https://github.com/chenqing512/CRZScrollview.git",
        "tag": "0.0.1"
    },
    "platforms": {
        "ios": "8.0"
    },
    "source_files": [
        "CRZScrollview",
        "CRZScrollview/**/*.{h,m}"
    ],
    "dependencies": {
        "SDWebImage": [
            "~> 4.2"
        ]
    }
}

Pin It on Pinterest

Share This