Hi.
I've wrote a code using fingerprint. When fingerprint fails you can tap "Enter Password" then Password textField will becomeFirstResponder(). My problem is here: when I tap that button it execute becomeFirstResponder() but keyboard
turns transparent. And when you tap on the blank space bottom of Password textField it types characters like a normal keyboard. What should I do?
Asked
Active
Viewed 462 times
0
RajeshKumar R
- 15,445
- 2
- 38
- 70
p.yarandi
- 59
- 1
- 11
1 Answers
1
becomeFirstResponder() will not work in this case. Use:
yourTextField.perform(
#selector(becomeFirstResponder),
with: nil,
afterDelay: 0.1
)
Community
- 1
- 1
Arun Kumar
- 34
- 4
-
1Thanks for your answer. I'd tried it with no delay and 0.1 delay worked for me. – p.yarandi Mar 14 '17 at 11:38
-
Yes. delay is needed – Arun Kumar Mar 14 '17 at 11:40

