Forums
New posts
Articles
Product Reviews
Policies
FAQ
Log in
Register
What's new
Search
Search
Search titles only
By:
New posts
Menu
Log in
Register
Install the app
Install
Forums
macOS & iOS Developer Playground
iOS Development
Hiding Keyboard In ScrollView
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser
.
Reply to thread
Message
<blockquote data-quote="adriantang" data-source="post: 1330743" data-attributes="member: 224837"><p>My first reply here. ;P</p><p></p><p>You can try to add this method to the .m implementation file.</p><p></p><p>- (void)touchesBegan<img src="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7" class="smilie smilie--sprite smilie--sprite3" alt=":(" title="Frown :(" loading="lazy" data-shortname=":(" />NSSet *)touches withEvent<img src="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7" class="smilie smilie--sprite smilie--sprite3" alt=":(" title="Frown :(" loading="lazy" data-shortname=":(" />UIEvent *)event</p><p>{</p><p> [yourTextFieldOutlet resignFirstResponder];</p><p>}</p></blockquote><p></p>
[QUOTE="adriantang, post: 1330743, member: 224837"] 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]; } [/QUOTE]
Verification
Name this item 🌈
Post reply
Forums
macOS & iOS Developer Playground
iOS Development
Hiding Keyboard In ScrollView
Top