Hiding Keyboard In ScrollView

Joined
Oct 11, 2011
Messages
46
Reaction score
0
Points
6
Your Mac's Specs
13" MacBook Pro 2.4 GHz 8 GB Ram 250 GB HD, iPhone 4/S 64 GB, iPhone 3GS 16 GB, iPad 16 GB Wi-Fi
how can u hide the keyboard when ur in scrollview by touching the background?


i have textfields but i want the user to be able to hide the keyboard while touching the background, I've already implemented the hide on return key but i know customers are going to complain.
 
Joined
Nov 23, 2011
Messages
2
Reaction score
0
Points
1
My first reply here. ;P

You can try to add this method to the .m implementation file.

- (void)touchesBegan:(NSSet *)touches withEvent:(UIEvent *)event
{
[yourTextFieldOutlet resignFirstResponder];
}
 

Shop Amazon


Shop for your Apple, Mac, iPhone and other computer products on Amazon.
We are a participant in the Amazon Services LLC Associates Program, an affiliate program designed to provide a means for us to earn fees by linking to Amazon and affiliated sites.
Top