-
Notifications
You must be signed in to change notification settings - Fork 12
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
Headers sometimes got sorted with items when add items repeatedly #2
Comments
Hi, You can use - (UIView *)dequeReusableViewOfClass:(Class)clazz; to only get views that are from a specific class. Simply have your header and your cells be Views from different classes, and pass your cell view class to this method to only get cell items. Let me know if it works! |
Oh, forgot to say, In the case, I clicks + button continuously and it happens. |
Oh, so it might be an issue with repeatedly adding items to the GridView. I'll have a look at this. |
There seems to be something broken with adding items due to some late commits. I'll fix it and let you know in this thread whenever it is ready. |
I pushed a fix for a bug adding items. I'm not 100% sure this will fix the header issue when pressing + button repeatdly, but definitely there was an issue when adding items using animation. Pull the latest from master and let me now if it works better |
Thanks! I'll test it later. By the way, will u update a new version on cocoa pods? |
Hi,
I am recently using SMGridView in my project. I found that when I add items fast and continuously, sometimes header of the target section will be obtained by using dequeueReusableVIew. So it will looks like the header view move down and sort with the items in section.
Anyone got the same problem before? I am wondering if I was using it in a wrong way.
Hubert
The text was updated successfully, but these errors were encountered: