Comments (10)
Not anymore! I saw it a few days ago but looks perfect now. Do you still see it ?
from gmgridview.
It was there yesterday. Will check again. The Simulator is not perfectly framebuffer-synced. Thus, if you maybe add a view and change it's frame one loop later, you get flickering in the simulator, but it looks perfect on the device.
from gmgridview.
i see what may look like rogue cells popping visible and then invisible very quickly. I don't know if this is inherent in the core code or in my layout strategy, but it sounds like it may be similar to what you mention. i'll update if i have more info.
from gmgridview.
I saw the same problem. I was able to track it down to the UIViewAnimation part in -newItemSubViewForPosition:. However as steipete mentioned, the problem only appears in the simulator. Works fine for me on the device.
from gmgridview.
There is more to this. As the device has a better view sync, you usually don't see the flickering; but it's still visible some times. We should fix the root problem on this, it's ugly.
from gmgridview.
I'm seeing a glitch in the simulator only when I call -reloadData. This looks like it's caused by one of the latest commits "Put back an animation block to fix a glitch" in -newItemSubViewForPosition. When I revert this change I don't see the issue anymore.
from gmgridview.
I think the issue is due to the following in -newItemSubViewForPosition:
// To make sure the frame is not animated
[UIView animateWithDuration:0
delay:0
options:UIViewAnimationOptionOverrideInheritedDuration
animations:^{
cell.frame = frame;
cell.contentView.frame = cell.bounds;
}
completion:nil];
If I replace it with the following I don't see the issue anymore:
[CATransaction begin];
[CATransaction setValue:(id)kCFBooleanTrue
forKey:kCATransactionDisableActions];
cell.frame = frame;
cell.contentView.frame = cell.bounds;
[CATransaction commit];
from gmgridview.
soleares, thank you, this is very clever!
Will try it and replace the 0-delay blocks with this; i'm sure this also improves performance.
from gmgridview.
Works like a charm --> 22ec389
from gmgridview.
Great !!
from gmgridview.
Related Issues (20)
- How can items drag in both the directions Left to Right and Right to Left ?
- GMGridView reloadData does not refresh view
- Archives has does not contain a single–bundle application or contains multiple products
- iOS 7 Horizontal strategy content size HOT 2
- No document about how to use this control
- if cell width is quite different, grid will show wrong cell when rotating
- ios 5.1 and lower issue HOT 1
- Grid cell want to draw from top HOT 1
- scrollToObjectAtIndex is not working properly when paging is enabled HOT 1
- memory problem - not released/reclaimed HOT 1
- another mem issue
- GMGrid Cell Alignment Issue
- Image stuck on screen
- Sort Help required!
- gridview.edit=yes,how to use sortingdelegate?
- index = -2147483648
- Maybe you can join a group function
- Button not working in subview GMGridviewCell
- Image link in README.md is broken
- animation repeat count doesn't work in GMGridViewCell
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from gmgridview.