Latest 0.7.1
Homepage https://github.com/PFei-He/PFCarouselView
License MIT
Platforms ios 6.0, requires ARC
Frameworks Foundation, CoreGraphics, UIKit
Authors

PFCarouselView

License MIT
Support
Cocoapods Compatible

PFCarouselView 是一款简单接入便可实现新闻客户端轮播图的开源库。
PFCarouselView is easy to create a carousel view for news app.

版本 Version

0.7.1

CocoaPods

target 'YourTarget' do
    platform:ios, '6.0'
    pod 'PFCarouselView', '~> 0.7'
end

代码展示 Code list

//创建一个轮播图 create carousel view
carouselView = [[PFCarouselView alloc] initWithFrame:CGRectMake(0, 100, 320, 200) animationDuration:2 delegate:nil];
//设置页数 setup pages
[carouselView numberOfPagesInCarouselViewUsingBlock:^NSInteger(PFCarouselView *carouselView){
    return viewsArray.count;
}];
//设置视图 setup content view
[carouselView contentViewAtIndexUsingBlock:^UIView *(PFCarouselView *carouselView, NSInteger index) {
    return viewsArray[index];
}];

运行效果展示 Show results

image

许可证 License

PFCarouselView使用 MIT 许可证,详情见 LICENSE 文件。
PFCarouselView is released under the MIT license, see LICENSE for details.

Latest podspec

{
    "name": "PFCarouselView",
    "version": "0.7.1",
    "summary": "Easy to create a carousel view for news app.",
    "homepage": "https://github.com/PFei-He/PFCarouselView",
    "license": "MIT",
    "authors": {
        "PFei-He": "[email protected]"
    },
    "platforms": {
        "ios": "6.0"
    },
    "source": {
        "git": "https://github.com/PFei-He/PFCarouselView.git",
        "tag": "0.7.1"
    },
    "source_files": "PFCarouselView/*",
    "frameworks": [
        "Foundation",
        "CoreGraphics",
        "UIKit"
    ],
    "requires_arc": true
}

Pin It on Pinterest

Share This