KKGridView icon indicating copy to clipboard operation
KKGridView copied to clipboard

Cell located underneath a Section Header View is still able to be touched.

Open viewDidAppear opened this issue 12 years ago • 8 comments

I have custom views for my Section Headers, and when a cell is partially scrolled underneath it, tapping a Section Header for my custom navigation will tap the cell instead. Almost as though the touch is going through the Header View. Any way for me to edit files to stop this from occurring?

viewDidAppear avatar Dec 01 '12 11:12 viewDidAppear

enable userInteraction on the header views probably

kolinkrewinkel avatar Dec 01 '12 23:12 kolinkrewinkel

Is there a specific file of KKGV that I have to edit to allow this? Because, I have a UIButton on the left side that gets disabled if I turn off userInteractionEnabled. It seems to be even though I tap on the Button or Header UIView itself, the Cell underneath it still gets selected even though it's under the header view.

viewDidAppear avatar Dec 02 '12 03:12 viewDidAppear

I think it has to do with viewableItems method inside the Source Code, it doesn't take into effect intersecting the rect of a Section Header.

viewDidAppear avatar Dec 02 '12 03:12 viewDidAppear

That's because it may still need to show them if there's a transparent header.

Sent from my iPhone

On Dec 1, 2012, at 19:19, cocotutch [email protected] wrote:

I think it has to do with viewableItems method inside the Source Code, it doesn't take into effect intersecting the rect of a Section Header.

— Reply to this email directly or view it on GitHub.

kolinkrewinkel avatar Dec 02 '12 03:12 kolinkrewinkel

Is there any way to stop it still recognizing the taps if I'm tapping inside the header?

viewDidAppear avatar Dec 02 '12 03:12 viewDidAppear

I'm sure if I edited a touch selection method or something I could get this to work. Seriously is there anything I can do?

viewDidAppear avatar Dec 02 '12 03:12 viewDidAppear

I'll look when I get home.

Sent from my iPhone

On Dec 1, 2012, at 19:47, cocotutch [email protected] wrote:

I'm sure if I edited a touch selection method or something I could get this to work. Seriously is there anything I can do?

— Reply to this email directly or view it on GitHub.

kolinkrewinkel avatar Dec 02 '12 03:12 kolinkrewinkel

How did you go?

viewDidAppear avatar Dec 03 '12 03:12 viewDidAppear