eggswift / pull-to-refresh

#Busy Re-Building....# An easy way to use pull to refresh and infinite scrolling in Swift. Pod 'ESPullToRefresh'
MIT License
1.82k stars 252 forks source link

Showing "Loading More" and force tableview stop scrolling and instead doing load more. #66

Open thihaaung6245 opened 7 years ago

thihaaung6245 commented 7 years ago

I am embedding this library inside ViewPager : https://github.com/uacaps/PageMenu which got tableview on same view controller

I don't know if this was bug or not. To tell you my state, I got 5 same view controllers and all include your pull to refresh and infinite load. And that issue was happening only at Infinite Load More. I did every step as you posted on ReadMe. I did even stop infinite load when the time comes [Data updated or occurred internet connection error].

But, when my view was disappear while doing infinite loading, it stops and keep showing "Loading More" and force my UITableView stop scrolling(Can't scroll records but gesture still work) as well. When I try to scroll the UITableView over and over again, it doing load more and show me message "Loading More" at footer.

Since I am working with ViewPager, when I move to the other page menu, previous view will disappear right due to life cycle methods. This happen when I move to other page while infinte loading is not complete due to connection error. But, until view did disappear, everything work fine.

Can you take a look? was this a bug or? something wrong with me?

MiteshiOS commented 7 years ago

@htarwara6245 you can remove that "Loading more " message from this file ESRefreshFooterAnimator.swift.