GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - chenddcoder/ScrollPageView: 将ScrollView与SMPageControl结合,依据MVC模式构建类,简化调用难度,依赖库是SMPageControl,可以使用Pod导入

BranchesTags
Open more actions menu

Latest commit

 

History

21 Commits
21 Commits

Folders and files

NameName
Last commit message
Last commit date
ScrollPageController
ScrollPageController
 
 
DDScrollPageView.podspec
DDScrollPageView.podspec
 
 
LICENSE
LICENSE
 
 
README.md
README.md
 
 

Repository files navigation

ScrollPageView

//定义所需要的变量
@property (weak, nonatomic) IBOutlet UIView *autoPlayView;
@property (nonatomic, strong) DDScrollPageView * pageView;
@property (nonatomic, strong) NSArray * viewArray;

//创建ScrollPageView
self.pageView=[[DDScrollPageView alloc] initWithFrame:self.autoPlayView.frame];
self.pageView.pageControlOffsetY=-30;
self.pageView.interval=2.0;
self.pageView.isAutoPlay=YES;
self.pageView.isCycle=YES;
self.pageView.dataSource=self;
[self.pageView setPageIndicatorImage:[UIImage imageNamed:@"灰点"] andCurrentPageIndicatorImage:[UIImage imageNamed:@"banner点"]];
[self.autoPlayView addSubview:self.pageView];
[self.pageView reloadData];

//实现代理
#pragma mark DDScrollPageViewDataSource
-(NSInteger)numberOfViewsInScrollPageView:(DDScrollPageView *)scrollPageView{
return self.viewArray.count;

}
-(UIView *)scrollPageView:(DDScrollPageView *)scrollPageView viewForIndex:(NSInteger)index{
return self.viewArray[index];
}

About

将ScrollView与SMPageControl结合,依据MVC模式构建类,简化调用难度,依赖库是SMPageControl,可以使用Pod导入

Resources

Readme
MIT license
Activity

Stars

4 stars

Watchers

1 watching

Forks

1 fork
Report repository

Releases

Packages

Contributors

Languages

You are visitor 01402520 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.