@property(nonatomic) CGPoint contentOffset; @property(nonatomic) CGSize contentSize; @property(nonatomic) UIEdgeInsets contentInset; @property(nonatomic,assign) <UIScrollViewDelegate> ; @property(nonatomic) BOOL bounces; @property(nonatomic) BOOL showsHorizontalScrollIndicator; @property(nonatomic) BOOL showsVerticalScrollIndicator;
CGFloat w = CGFloat h = ( i = ; i< kCount; i++ UIImageView *imageView = imageView.frame = CGRectMake(i * w, NSString *imgName = [NSString stringWithFormat:, i + imageView.image = [_scrollView addSubview:imageView];
Attributes are introduced at the beginning of the article.
_scrollView.contentSize = CGSizeMake(kCount * w, == = self;
UIPageControl *pageControl = pageControl.center = CGPointMake(w * , h - pageControl.bounds = CGRectMake(, , , pageControl.numberOfPages = kCount; pageControl.pageIndicatorTintColor = pageControl.currentPageIndicatorTintColor = pageControl.enabled = _pageControl = pageControl;
Mark-UIScrollView proxy method mark when scrollView is rolling call-() scrollViewDidScroll :( UIScrollView * page = scrollView. contentOffset. x/_ pageControl. currentPage =
Clear Saup