保持pageControl与现实图片一致

-(void)scrollViewDidScroll:(UIScrollView *)scrollView

{

    double pageDouble = self.headerScroll.contentOffset.x/self.headerScroll.frame.size.width;

    int page = (int)(pageDouble + 0.5);

    self.pageControl.currentPage = page;

}

posted @ 2014-11-07 17:09  土豪YY  阅读(190)  评论(0编辑  收藏  举报