akkyie/AKPickerView

EXC_BAD_ACCESS crash

Closed this issue · 1 comments

Hello! I have installed your code and really like the design and functionality. Nice work! However, I have discovered that the delegate code crashes with an EXC_BAD_ACCESS fault if the AKPickerView object is released inside the -pickerView:didSelectItem: delegate method. This can be resolved by adding the following code to the AKPickerView implementation:

- (void)dealloc
{
    self.collectionView.delegate = nil;
}

Patched it (e024b59.)
Thanks for using my control and your contribution!