Strange First Responder Issue

17 ogledov
Preskoči na prvo neprebrano sporočilo

Keary Suska

neprebran,
1. mar. 2016, 17:50:191. 3. 16
do objec...@googlegroups.com
I have a xib/cib that suddenly, for some strange reason, any text field set as initial first responder appears as a placeholder string—i.e. gray instead of black text—and until the field blurs, when it appears normal. It also doesn’t select the text contents as it does with other xibs.

I was able to work around this by doing:

[[self window] performSelector:@selector(makeFirstResponder:) withObject:[_viewController view] afterDelay:0.1];
[[self window] performSelector:@selector(makeFirstResponder:) withObject:[[_viewController view] viewWithTag:1] afterDelay:0.2];

in windowDidLoad.

I have reset via XcodeCapp, but the issue remains.

Anybody have a clue why this happens?

Keary Suska
Esoteritech, Inc.
"Demystifying technology for your home or business"

Odgovori vsem
Odgovori avtorju
Posreduj
0 novih sporočil