-
Notifications
You must be signed in to change notification settings - Fork 71
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
Support for UICollectionView #11
Comments
I have tried this, in one of my tests: self.collectionView.reloadData()
var origFrame = self.collectionView.frame
var frame = self.collectionView.frame
frame.size.height = self.collectionView.contentSize.height
frame.size.width = self.collectionView.contentSize.width
self.collectionView.frame = frame
UIGraphicsBeginImageContext(self.collectionView.bounds.size)
self.collectionView.layer.renderInContext(UIGraphicsGetCurrentContext())
var saveImage = UIGraphicsGetImageFromCurrentImageContext()
UIGraphicsEndImageContext()
self.collectionView.frame = origFrame I'm not sure if it is the best way to go about it. |
Hi @ipranay, thanks for your comments, really glad to hear that :] Right now, I am not planning to add support for collection views, at least not in the near future. But, I think we can create a feature branch to do just that, so you can start with something and maybe others can join too. Thoughts? What you have done in the snippet above looks good, it could be the starting point to build upon it. |
I need to support UICollectionview,but there is bugs in my code ,Can you help me ? |
First of all... This library is awesome! Thanks for creating it.
Is their any chance you plan on supporting UICollectionView as well?
I understand, that it might be way more complicated than a UITableView, due to the different custom layouts you could build.
The text was updated successfully, but these errors were encountered: