IGListKit icon indicating copy to clipboard operation
IGListKit copied to clipboard

crash at self.selectionDelegate didDeselectItemAtIndex:

Open mahomealex opened this issue 9 years ago • 6 comments

New issue checklist

new to check delgate method exist first, because it's optional.

General information

  • IGListKit version:
  • iOS version(s):
  • CocoaPods/Carthage version:
  • Xcode version:
  • Devices/Simulators affected:
  • Reproducible in the demo project? (Yes/No):
  • Related issues:

Debug information

# Please include debug logs using the following lldb command:
po [IGListDebugger dump]

mahomealex avatar Aug 29 '17 09:08 mahomealex

@mahomealex can you provide more detail? At the very least we need a stack trace.

rnystrom avatar Aug 29 '17 19:08 rnystrom

@rnystrom do we check respondsToSelector: for this method?

jessesquires avatar Aug 29 '17 21:08 jessesquires

@jessesquires actually for the binding SC we don't:

https://github.com/Instagram/IGListKit/blob/6540f960e2e69bd4776e1e1d8c460ff812ba4c07/Source/IGListBindingSectionController.m#L127

For IGListSectionController it doesn't matter since it's in the base class.

Should we fix and push 3.1.1 for this? Kind of bad.

rnystrom avatar Aug 29 '17 21:08 rnystrom

ooof. @rnystrom yeah let's push 3.1.1

jessesquires avatar Aug 29 '17 22:08 jessesquires

Aight I'll PR the fix then follow up with cutting new version

rnystrom avatar Aug 29 '17 23:08 rnystrom

@rnystrom Just subclass a SectionController and set ListBindingSectionControllerSelectionDelegate. Since It's optional, means does't need to implement, so base class have to check first. Btw, will IGList provide a waterFall extension with different ratio and column count? I have write one in swift, it's necessary and not that easy.

mahomealex avatar Aug 30 '17 06:08 mahomealex