xornorik / SVPinView

SVPinView is a light-weight customisable library used for accepting pin numbers or one-time passwords.
MIT License
282 stars 90 forks source link

PinView crashes on iPhone SE 2nd Generation #69

Closed AnkurLahiry closed 2 years ago

AnkurLahiry commented 2 years ago

Hello there,

I have been using SVPinView, and thanks for the wonderful library. I have been facing a crash on the latest release 1.0.11.

*** Terminating app due to uncaught exception 'NSInternalInconsistencyException', reason: 'the cell returned from -collectionView:cellForItemAtIndexPath: does not have a reuseIdentifier - cells must be retrieved by calling -dequeueReusableCellWithReuseIdentifier:forIndexPath:'

In other issues, it is referenced that it was a problem of copying cocoa pod.

Here is my podfile Screenshot 2022-03-13 at 11 47 00 AM

Here is my xib file

Screenshot 2022-03-13 at 11 43 38 AM

Thanks in advance

AnkurLahiry commented 2 years ago

The issue behind that, I tried to capture the keyboard notifications KeyboardWillShow, KeyboardWillhide before awaking the PinView. Receiving the events after awaking solved the issue

blavkjay commented 1 year ago

@AnkurLahiry please how did you go about this?