You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Driving me mad. I use the recommended Example (on the front page) for cellForItemAtIndexPath, and in my cell creation, I add a Label subview because I require text to be shown on the bottom of the cell.
Only problem is, when I scroll it will visibly stutter, and when I return, there are duplicates of the text (and assumably the image too) on every cell. Leaving the grid view slow, unresponsive and unpleasant to use. I really don't want to have to go find another one.
Any ideas?
The text was updated successfully, but these errors were encountered:
This method will always return something, similar to the new UITableView method. If you add subview every time it's called, you'll get a million subviews. Add them only in your sub class's init method and set values on the properties "cell.textLabel.text = ..."
Driving me mad. I use the recommended Example (on the front page) for cellForItemAtIndexPath, and in my cell creation, I add a Label subview because I require text to be shown on the bottom of the cell.
Only problem is, when I scroll it will visibly stutter, and when I return, there are duplicates of the text on every cell. Leaving the grid view slow, unresponsive and unpleasant to use. I really don't want to have to go find another one.
Any ideas?
—
Reply to this email directly or view it on GitHub.
Setting the image should not call multiple times. The grid view should not be glitchy when you scroll by any means. I have tried to set up my cellForItemAtIndexPath: method like a normal UITableViewCell method, with "if(cell==nil)" conditionals, where I create any necessary subviews, and inside the else statement I grab the view by its tag.
Beneath the entire conditional, I set the property of the textLabel subview and the imageView that was already found upon the cell.
Driving me mad. I use the recommended Example (on the front page) for cellForItemAtIndexPath, and in my cell creation, I add a Label subview because I require text to be shown on the bottom of the cell.
Only problem is, when I scroll it will visibly stutter, and when I return, there are duplicates of the text (and assumably the image too) on every cell. Leaving the grid view slow, unresponsive and unpleasant to use. I really don't want to have to go find another one.
Any ideas?
The text was updated successfully, but these errors were encountered: