Subscribe ( )

iPhone Programming Tutorials


 

Forum

You must be logged in to post Login Register

Search 

Hide Keyboard when a field loses focus

User Post

6:48 am
October 21, 2008


fatron

Noob

posts 1

1

How do you hide a keyboard when a text field loses focus?  I don't see a way to do it within Interface Builder.  Is it possible to do within Interface Builder, or does it have to be done programatically?

Thanks

7:43 am
October 21, 2008


AdeC

iCoder

posts 17

2

This has been mentioned a few times in other threads and also in the comments of the tutorials.

You have to do it in code using

[txtControl resignFirstResponder];

Not the best explanation (Im still in the early stages of XCode) but its something for you to start with. If you can post back as and when you resolve your issue with your resolution that would help us all!


Search 

About the iCodeBlog forum

Most Users Ever Online:

44


Currently Online:

6 Guests

Forum Stats:

Groups: 2

Forums: 6

Topics: 419

Posts: 893

Membership:

There are 934 Members

There has been 1 Guest

There are 2 Admins

There is 1 Moderator

Top Posters:

bobcubsfan – 54

crazyiez – 30

Uhu – 17

AdeC – 17

Nick – 15

jitesh61 – 12

Administrators: Brandon (88 Posts), Collin (0 Posts)

Moderators: VertigoSol (26 Posts)



©   

  • Posted by on 6 Aug 2008 in Uncategorized
  •   |  
  •   |  
  •   |  
  • Comments Off

Comments are closed.