FlexiblePageControl icon indicating copy to clipboard operation
FlexiblePageControl copied to clipboard

page control not updating with large number of pages

Open codedreamer46 opened this issue 7 years ago • 12 comments

Thanks for the library, page control not laying out properly with large number of pages.

codedreamer46 avatar May 19 '17 11:05 codedreamer46

Please suggest a way to handle this issue.

codedreamer46 avatar Jul 03 '17 08:07 codedreamer46

I can not reproduce this issue. Please tell me the situation in detail.

shima11 avatar Jul 05 '17 15:07 shima11

I ran into the same issue today. The problem happens when you have a lot of pages and then modify the current page to a value higher than displayCount.

Example:

pg.numberOfPages = 50
pg.updateViewSize()
pg.currentPage = 45

This will not highlight any of the dots. I was able to use the following workaround for now:

for curIndex in 0..<targetIndex+1 {
  pg.currentPage = curIndex
}

RonnyFenrich avatar Aug 31 '17 22:08 RonnyFenrich

Hello @shima11
i have found same issue today even i have tried in your example too , in your example i have taken 15 images and when i am trying to set the currentPage to 14 in @IBAction (Just For check the issue) then the PageControl will disappear .

let me know if you have found the same issue

ErGopal avatar Oct 05 '17 10:10 ErGopal

I have solved this issue by updating some code in FlexiblePageControl Class.

ErGopal avatar Oct 12 '17 11:10 ErGopal

@ErGopal can you provide your code please? I have same issue.

ghost avatar Oct 18 '17 15:10 ghost

Hey @avitruk , i can give you some hint that what the library did wrong . The developer of this library assume that user will swipe the page one by one (Left or Right). that's it.

ErGopal avatar Oct 23 '17 04:10 ErGopal

@ErGopal thanks)

ghost avatar Oct 25 '17 16:10 ghost

hai @avitruk page control not updating with large number of pages ,Is there a new solution to this problem? thanks

doubleYang1020 avatar Feb 07 '18 04:02 doubleYang1020

@doubleYang1020 Hi, actually I didn't use this library anymore, so I don't know) But the last update from the author was 8 months ago, so I don't think that something changed.

ghost avatar Feb 07 '18 09:02 ghost

@avitruk You found a new library for pageControl functional?

NikitaKoltsov avatar Nov 02 '18 06:11 NikitaKoltsov

@NikitaKoltsov nope, the design of our app was changed, so we don't use it

ghost avatar Nov 02 '18 06:11 ghost