Skip to content

PFei-He/PFCarouselView

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

72 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

License MIT Support Cocoapods Compatible

中文介绍

PFCarouselView is easy to create a carousel view for news app.

PFCarouselView is still in development, welcome to improve the project together.

Version

0.8.0

Installation with CocoaPods

source 'https://github.com/CocoaPods/Specs.git'
platform:ios, '6.0'
 
target 'YourTarget' do
    pod 'PFCarouselView', '~> 0.8'
end

Code list

//create carousel view
PFCarouselView *carouselView = [[PFCarouselView alloc] initWithFrame:CGRectMake(0, 100, 320, 200)];
//setup pages
[carouselView numberOfPagesUsingBlock:^NSInteger {
    return viewsArray.count;
}];
//setup content view
[carouselView setupContentViewUsingBlock:^UIView *(NSInteger index) {
    return viewsArray[index];
}];

Show results

image

License

PFCarouselView is released under the MIT license, see LICENSE for details.