glyuck / GlyuckDataGrid

DataGridView (multicolumn tables) for iOS based on UICollectionView
MIT License
120 stars 35 forks source link

Please, fix chashing while tapping on row header #2

Closed yurevich1 closed 8 years ago

yurevich1 commented 8 years ago

Inside this class public class DataGridViewBaseHeaderCell: DataGridViewBaseCell {

change function

public func didTap(gesture: UITapGestureRecognizer) { dataGridView.collectionViewDelegate.collectionView(dataGridView.collectionView, didTapHeaderForColumn: indexPath.row) }

into

public func didTap(gesture: UITapGestureRecognizer) {
        dataGridView.collectionViewDelegate.collectionView(dataGridView.collectionView, didTapHeaderForColumn: indexPath.index)
    }

if use the fisrt variant the library crashes with

Assertion failure in -[NSIndexPath row]

glyuck commented 8 years ago

Fixed it in master, forgot to publish a new release. Done now: v0.2.1.