Using IGGridView from 2014.2.146
I have not tried this on an actual device yet, only the simulator as pictured.
Very simple datasource and delegate.
I don't know if I have a setting incorrect or something, but I've noticed that the delay (de-selecting the existing row, removing it's cell color, then selecting the clicked row, and highlighting it's cell color) is soooo long when clicking from one row to the next, it borders on making you wonder if you actually clicked it or not. I have not changed any default settings I know of that would cause this, and I'm on a spanking new Mac Pro 15" with a 1 TB SSD, so I hardly think it's my computer. Is there any way to speed this behavior up, so that clicking a row immediately selects it and highights the cell.
I've tried setting the DataSourceHelper.editingTransitionDuration = 0 and that has no noticable affect, so I don't know why this would be so slow.
I've tried time profiling it and that didn't seem to reveal anything useful either.
Users are going to find this behavior really offputting if this can't be changed.
Thanks.
Hi David,
So, selection is only .3 seconds. It's not configurable, but it sounds like something is definitely wrong. If you grab our samples browser from the app store, you can see what its actually supposed to be like. (Side note, the samples browser also gets installed with the product).
Also, the editingTranstionDuration, is for editing only. The IGGridView does have a transitionDuration property, but that for reordering, adding and deleting cells ,rows and columns.
It's hard to say exactly whats happening though without any code.
I've attached a simple sample for now that shows it working properly. Can you verify that its working for you?
Thanks,
-SteveZ
Your code sample is noticably faster than mine.
Perhaps it's something I overrode.
Maybe this... ???
- (void)gridView:(IGGridView *)gridView didSelectCellAtPath:(IGCellPath *)path
{
IGGridViewCell *theCell = [gridView cellAtPath:path];
if (path.columnIndex == 0)
theCell.backgroundColor = [UIColor greenColor];
}
Could I submit my play project for you to take a look at ?
There's only a gridview, and about 3 classes in 6 files.
If so, would I just attach it here, or send it another way.
Yea if you have a project that reproduces it, that'd be really helpful
You can attach it here, just select the options tab at the top to attach a file to the reply
Thanks
Ok, here it is.
Thanks for the sample,
Looks like its related to allowEditing on the DSH. I'm guessing it has to do with the fact that with editing we hook a double tap gesture to the cell, which means the selection tap has to wait and see if it fails. We're using the UIGesture's requireGestureRecognizerToFail selector, which probably has an inherent delay. It actually wouldn't have anything to do with the animation.
I'll take a look into it in the morning and see if there is anything we can do, it certainly should avoid that gesture if the column has editing disabled though.
Btw, i noticed that you're re-declaring the delegate and datasource methods in the internal interface of your class. You know you don't need to do that right?