uitextfield delegate must be file's owner?
Posted
by deafgreatdane
on Stack Overflow
See other posts from Stack Overflow
or by deafgreatdane
Published on 2010-04-01T23:06:39Z
Indexed on
2010/04/01
23:13 UTC
Read the original article
Hit count: 245
cocoa-touch
I've seen a few references (eg here) in response to folks having trouble getting the keyboard to dismiss in iPhone that say "double check that the delegate is attached to file's owner.
Is this necessarily true? Or just standard practice? Can't I have other objects in my nib, such as a subclass of UIViewController, and make connections to those as I like? I'd hate to have to route everything into the object that happens to be file owner.
That said, I'm having a difficult time getting the keyboard to disappear. I know it's connected to the delegate, because I can set break points and step through the code. I can see the [theTextField resignFirstResponder] get called (and return true), but the keyboard still won't go away.
Any other suggestions?
© Stack Overflow or respective owner