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

No work in CollectionView #66

Open
fisland opened this issue May 11, 2017 · 0 comments
Open

No work in CollectionView #66

fisland opened this issue May 11, 2017 · 0 comments

Comments

@fisland
Copy link

fisland commented May 11, 2017

Hi, it is a beautiful refresh library, easy create in table
But it has a problem in Collection,can't drag to show ,but had run the function
scrollViewDidChangeContentOffset(dragging: false)

as below the code

 let loadingView = DGElasticPullToRefreshLoadingViewCircle()
        loadingView.tintColor = UIColor(red: 78/255.0, green: 221/255.0, blue: 200/255.0, alpha: 1.0)
        self.collectionView!.dg_addPullToRefreshWithActionHandler({ 
            DispatchQueue.main.asyncAfter(deadline: DispatchTime.now() + Double(Int64(1.5 * Double(NSEC_PER_SEC))) / Double(NSEC_PER_SEC), execute: {
                self.collectionView!.dg_stopLoading()
            })
        }, loadingView: loadingView)
        
        self.collectionView!.dg_setPullToRefreshFillColor(UIColor(red: 57/255.0, green: 67/255.0, blue: 89/255.0, alpha: 1.0))
     
        self.collectionView!.dg_setPullToRefreshBackgroundColor(self.collectionView!.backgroundColor!)

that was test in the demo example code
Thank you

@fisland fisland changed the title No working in CollectionView No workin CollectionView May 11, 2017
@fisland fisland changed the title No workin CollectionView No work CollectionView May 11, 2017
@fisland fisland changed the title No work CollectionView No work in CollectionView May 11, 2017
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

1 participant