Cancel editing on a cell in shinobiGrid:willCommenceEditingAutoCell:


#1

I’m trying to find a way to programmatically cancel an edit for certain cells in shinobiGrid:willCommenceEditingAutoCell, and finding nothing. Any ideas?

Thanks,
Chris
 


#2

Hi Chris,

Our current API doesn’t support this directly. A possible workaround  You might be able to create your own SGridCell subclass that uses a UILabel to render text - UILabels are not editable via user gestures and so this subclass would make a very good un-editable cell. You could then return this cell type in your data source method for grid coords that you want to be un-editable.

Our March release of ShinobiGrids should hopefully include a supported way of stopping cell editing (probably via delegation), making it a lot easier to customise the grid in this way.  :smile: