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

Is it possible to use without reusing view? #195

Open
deviggner opened this issue Apr 2, 2016 · 2 comments
Open

Is it possible to use without reusing view? #195

deviggner opened this issue Apr 2, 2016 · 2 comments

Comments

@deviggner
Copy link

Hi,

Is it possible to use without reusing view? If yes, could you please describe how to do that?

Thank you.

@nicklockwood
Copy link
Owner

Yes, just ignore the view parameter and return a new view.

@deviggner
Copy link
Author

Hello @nicklockwood,

Thank you for your answer. I added my views in swipeView viewForItemAtIndex:(NSInteger)index reusingView:(UIView *)view method by checking index manually. And i want to change the view with a segmented control. When my segment changed i call [_swipeView scrollToPage:0 duration:.35] but after 1-2 change the app crashes and giveindex 0 beyond bounds for empty array' error.

Do you know what causes that?

Thanks.

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