Skip to content

Dobbinyang/ScrollView

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 

Repository files navigation

ScrollView

In the APP is first started calling SCrollView, lead you to the application.

UIPageControl

//user can't clic
pc.userInteractionEnabled = NO;

UIScrollViewDelegate

-(void)scrollViewDidScroll:(UIScrollView *)scrollView
{
  CGPoint offset = scrollView.contentOffset;
   self.pc.currentPage = round(offset.x / scrollView.bounds.size.width);
}

instructions

在图片上,添加跳转按钮时,要设置与用户交互
imageV.userInteractionEnabled = YES;

About

The SCrollView's started to use

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published