Skip to content

Yuzeyang/GCCardViewController

Repository files navigation

GCCardScrollView

Introduction

This is animation is imitate iOS7 task switcher animation, if you have more than 4 cards,it will reues card,and it can delete card

Gif

how to use

1.add card scroll view

self.cardScrollView = [[CardScrollView alloc] initWithFrame:self.view.frame];
self.cardScrollView.cardDelegate = self;
self.cardScrollView.cardDataSource = self;
[self.view addSubview:self.cardScrollView];

2.update card when scrolling

- (void)updateCard:(UIView *)card withProgress:(CGFloat)progress direction:(CardMoveDirection)direction;

3.set cards number

- (NSInteger)numberOfCards;

4.reuse card

- (UIView *)cardReuseView:(UIView *)reuseView atIndex:(NSInteger)index;

5.delete card,this is optional

- (void)deleteCardWithIndex:(NSInteger)index;

Related articles

模仿iOS7 task switcher的卡片动画

About

imitate iOS7 task switcher animation 模仿iOS7 task switcher 动画

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published