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

What if the count can only be retrieved with a network call? #8

Closed
fatuhoku opened this issue Oct 2, 2015 · 1 comment
Closed

What if the count can only be retrieved with a network call? #8

fatuhoku opened this issue Oct 2, 2015 · 1 comment

Comments

@fatuhoku
Copy link

fatuhoku commented Oct 2, 2015

Thanks for putting AWPagedArray together. It's pretty cool. My use case is to fetch data from a Parse backend, for which I don't know the count when I present the interface.

At present AWPagedArray pretty much requires a fixed count to be available when the view loads, because it's a parameter of the initialiser -initWithCount:objectsPerPage:.

What about the cases where the count is not known until display?

@MrAlek
Copy link
Owner

MrAlek commented Oct 11, 2015

Thanks for reaching out. I made AWPagedArray with the intention of using it for datasets with a known count.

If you don't know the count and aren't trying to pre-fill UI for cells that haven't been loaded yet, you might as well just go with a regular NSMutableArray and fill upp with objects as new pages load, expanding the total size each time.

@MrAlek MrAlek closed this as completed Mar 13, 2016
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

2 participants