Skip to content

alfonsomiranda/CardScrollView

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

CardScrollView

CardScrollView

Installation

Add the CardScrollView folder to your project.

Usage

UIView *view1 = [[UIView alloc] initWithFrame:CGRectMake(0, 0, 260, 300)];
[view1 setBackgroundColor:[UIColor redColor]];
UIView *view2 = [[UIView alloc] initWithFrame:CGRectMake(0, 0, 260, 300)];
[view2 setBackgroundColor:[UIColor greenColor]];
UIView *view3 = [[UIView alloc] initWithFrame:CGRectMake(0, 0, 260, 300)];
[view3 setBackgroundColor:[UIColor grayColor]];
UIView *view4 = [[UIView alloc] initWithFrame:CGRectMake(0, 0, 260, 300)];
[view4 setBackgroundColor:[UIColor whiteColor]];

NSArray *views  = [[NSArray alloc] initWithObjects:view1, view2, view3, view4, nil];
CardScrollView *cardScroll = [[CardScrollView alloc] initWithViews:views atPoint:CGPointMake(0, 50)];
[self.view addSubview:cardScroll];

Requirements

Requires iOS 5.0 and ARC.

About

A different scrollview

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published