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

proper way to load more #93

Open
fresh83 opened this issue Jun 18, 2015 · 2 comments
Open

proper way to load more #93

fresh83 opened this issue Jun 18, 2015 · 2 comments

Comments

@fresh83
Copy link

fresh83 commented Jun 18, 2015

having a hell of a time getting it to load more without causing the last card to be skipped or crashing to occur due to something or another.

•What method should loadmore be called in
•What should be called after more data has been loaded.

@acegreen
Copy link

I did it in the wasChosenWithDirection function

    if self.charts.count <= 5 {

        // GetObjects and make charts
        getObjectsAndMakeCharts()

    }

@acegreen
Copy link

Also my load function doesn't just the last card, it knows the position of the card being loaded (i.e. 0, 1 or 2) and loads the correct array element.

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