Skip to content

liukaiyi54/KKScrollingBannerView

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

22 Commits
 
 
 
 
 
 

Repository files navigation

KKScrollBannerView

jun-16-2017 22-42-26

A very handy scroll banner view.

Usage

  1. Copy KKScrollBannerView.h and KKScrollBannerView.m to your project.
  2. Set up in your views like this:
KKScrollBannerView *bannerView = [[KKScrollBannerView alloc] initWithFrame:CGRectMake(0, 0, self.view.frame.size.width, 200)];
bannerView.dataSource = self;

[self.view addSubview:bannerView];
  1. Set up dataSource:
#pragma mark - DataSource
- (NSArray *)bannerViews {
    UIView *view0 = [[UIView alloc] init];
    UIView *view1 = [[UIView alloc] init];
    UIView *view2 = [[UIView alloc] init];
    ...
    return @[view0, view1, view2];
}

  1. You are good to go.

About

A very handy scrolling banner view(无限滚动视图)

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published