-
Notifications
You must be signed in to change notification settings - Fork 34
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
Cells are being overwritten in the screen while scrolling V or H #19
Comments
Rafael, I haven’t seen that before. Are you sure you don’t have more than 1 spreadsheet view being added to the popup? This is just a group of UICollectionViews so I’d check to see if something is strange in the delegate calls. Jeff |
Is initSpreadSheetView being called more then once? Try adding NSLog(@"%s", PRETTY_FUNCTION); at the top of the function and bring it up a few times (looks like it's a view inside of a popup). That method should only fire once. If it's getting called more than once, there is the problem. |
Yes, it's being called just once from viewDidLoad and I could confirm it by logging "PRETTY_FUNCTION". What else it could be? :) |
Did you try open and closing self.viewProdutoEmProdutos several times so see if the initializer is getting called more than once? From what you've shown, I don't see a problem. You might try just using a UICollectionView in place of the spreadSheetView to see if you get the same problem. |
Hi all, What I did was every time I added a cell, I removed all its child views. Here is the code I used: |
@ITDebicki Are you saying this is a UICollectionView issue or something in @sidan 's cell implementation? Perhaps needing to check or destroy the cell's subviews in |
I didn't investigate it fully, but I just used this method in the init method of each cell |
@ITDebicki , it seems a nice work around, which I've used so far to reload the view while using this library: https://www.cocoacontrols.com/controls/tstableview that I end up with cuz of project's deadline. |
Alright, to start, would like to say this library is a good job and help me a lot as a solution for presenting spreadsheets. Second, would like to know how to solve this issue:
I've made some customization for populate the content within the spreadsheet. But while scrolling, the cells are being drawn above each other, out of order, producing a great mess in the screen.
It goes like this:
But when I scroll H or V:
Would like to have (please) some clarification about it.
Thanks in advance
The text was updated successfully, but these errors were encountered: