ios - UICollectionView only calling didSelectItemAtIndexPath if user double taps, will not call when user single taps -


i have uicollectionview size of screen. uicollectionviewcells displays same size collectionview. each cell has uiimage size of cell. collectionview has paging enabled full screen photo slideshow user can swipe through.

the problem that
-(void)collectionview:(uicollectionview *)collectionview didselectitematindexpath:(nsindexpath *)indexpath being called if user taps 2 fingers on cell or long presses 1 finger , releases. not seem have default behaviour of single tap selection. have not made changes collectionview gesture recognizer having trouble finding solution problem.

are sure you're not accidentally overriding - (void)collectionview:(uicollectionview *)collectionview diddeselectitematindexpath:(nsindexpath *)indexpath? "select" vs. "deselect" has tripped me in past xcode's code completion.


Comments

Popular posts from this blog

java - Jmockit String final length method mocking Issue -

asp.net - Razor Page Hosted on IIS 6 Fails Every Morning -

c++ - wxwidget compiling on windows command prompt -