Skip to content
This repository has been archived by the owner on Aug 1, 2019. It is now read-only.

Is it possible to do PullToRefresh? #39

Closed
jun1st opened this issue Aug 31, 2016 · 5 comments
Closed

Is it possible to do PullToRefresh? #39

jun1st opened this issue Aug 31, 2016 · 5 comments

Comments

@jun1st
Copy link

jun1st commented Aug 31, 2016

Is it possible to do pulltorefresh ?

I may have a lot old messages and want be able to load it when pulling down.

@atainter
Copy link
Contributor

@atainter atainter closed this as completed Sep 1, 2016
@dodikk
Copy link

dodikk commented Feb 27, 2017

@jun1st , have you managed to implement your feature? If so, could you please share some tips and insights?

P.S. I'm stuck at not receiving any batchFetchContent() invocations even though I've overloaded the corresponding function and enabled the self.messengerView.doesBatchFetch = true
#97

@jun1st
Copy link
Author

jun1st commented Feb 28, 2017

@dodikk Yes, I did get prefetch to work.

I have a controller inherited from NMessengerViewController, set the doesBatchFetch = true inside viewDidLoad, and implemented the protocol methods

@kevinjonesevans
Copy link

Is it possible to get an example of using the head prefetching feature?? I have implemented the batchFetchContent method and it gets called, but I end up getting an error for not being on the main thread. After that I wrapped the body of my method in a DispatchQueue.main.sync block, which takes care of the first error. But then I run into the problem that my messengerView.allMessages returns nil.

@jun1st
Copy link
Author

jun1st commented Nov 26, 2017

@kevinjonesevans just check the doc, implements the methods, and it would work.

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

No branches or pull requests

4 participants