Programmatically Linking UIPageControl to UIScrollView

后端 未结 5 1641
一生所求
一生所求 2020-12-07 13:41

I am making a simple slideshow view within my app. I\'d like to link my UIPageControl to my UIScrollView. This shouldn\'t be too difficult, but I haven\'t been able to fin

5条回答
  •  -上瘾入骨i
    2020-12-07 13:54

    to get exact page index without rounding off the value simply put the pagecontrol.currentpage in the scrollViewDidEndDecelerating delegate method of scroll view.This works for me!

提交回复
热议问题