PAPasscode icon indicating copy to clipboard operation
PAPasscode copied to clipboard

After calling PAPasscode, Cursor in all text fields are invisible?

Open civilordergone opened this issue 10 years ago • 2 comments

I am pulling the library through cocoapods.

Every time I give focus to some UITextfield after PAPasscode is closed, the cursor disappears..

This is happening on iOS8

PAPasscode itself appears to work properly and I copied the way you've instantiated it in your demo.

civilordergone avatar Jun 04 '15 02:06 civilordergone

I have this same problem but I think that it's not the cursor that disappears, the UITextField itself disappears. Reproduce it and use Color Blended Layers on the Simulator (Debug > Color Blended Layers) on iOS 8. I haven't tried it on any other version of iOS.

ahmdx avatar Jun 12 '15 02:06 ahmdx

After searching the internet and tinkering with some parts of the code, I have found that removing the line [passcodeTextField becomeFirstResponder]; from -viewWillAppear: to -viewDidAppear: fixes the problem. This will result in a keyboard appearance delay, however, it fixes the problem.

ahmdx avatar Jun 12 '15 03:06 ahmdx