I found a crash inside adjustViewHeirarchy due to it not checking for NSNull and have made a fix. Please consider incorporating it into your main branch.
It appears the coverViews array has all its elements initially set to NSNull, and they are and lazily assigned to
TKCoverflowCoverView as required. The code in adjustViewHeirarchy was
not checking for NSNull when calling sendSubviewToBack causing a crash.
This bug was discovered by scrolling through the covers and rotating
the device. Fix is to check for NSNull before calling sendSubviewToBack.
I noticed there are various places in the code where a NSNull check is made on the elements of the coverview array. I'm not sure what is the root cause of this issue... possibly some kind of timing issue.
I found a crash inside adjustViewHeirarchy due to it not checking for NSNull and have made a fix. Please consider incorporating it into your main branch.
It appears the coverViews array has all its elements initially set to NSNull, and they are and lazily assigned to TKCoverflowCoverView as required. The code in adjustViewHeirarchy was not checking for NSNull when calling sendSubviewToBack causing a crash. This bug was discovered by scrolling through the covers and rotating the device. Fix is to check for NSNull before calling sendSubviewToBack.
I noticed there are various places in the code where a NSNull check is made on the elements of the coverview array. I'm not sure what is the root cause of this issue... possibly some kind of timing issue.