Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

page control not updating with large number of pages #4

Open
codedreamer46 opened this issue May 19, 2017 · 12 comments
Open

page control not updating with large number of pages #4

codedreamer46 opened this issue May 19, 2017 · 12 comments

Comments

@codedreamer46
Copy link

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

@codedreamer46
Copy link
Author

Please suggest a way to handle this issue.

@shima11
Copy link
Owner

shima11 commented Jul 5, 2017

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

@RonnyFenrich
Copy link

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
}

@ErGopal
Copy link

ErGopal commented Oct 5, 2017

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
Copy link

ErGopal commented Oct 12, 2017

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

@ghost
Copy link

ghost commented Oct 18, 2017

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

@ErGopal
Copy link

ErGopal commented Oct 23, 2017

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.

@ghost
Copy link

ghost commented Oct 25, 2017

@ErGopal thanks)

@doubleYang1020
Copy link

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

@ghost
Copy link

ghost commented Feb 7, 2018

@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.

@NikitaKoltsov
Copy link

@avitruk You found a new library for pageControl functional?

@ghost
Copy link

ghost commented Nov 2, 2018

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants