Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 3244272
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 17, 20262026-05-17T18:31:53+00:00 2026-05-17T18:31:53+00:00

I am trying to make my editable UITextView resign the keyboard ( resignFirstResponder )

  • 0

I am trying to make my editable UITextView resign the keyboard (resignFirstResponder) when the user taps “Done.” Using a UITextField, I have been able to do this with the following code:

- (IBAction)doneEditing:(id)sender {
    [sender resignFirstResponder];
}

… and then to attach it to the relevant UITextField in Interface Builder to the action “Did End on Exit.”

However, with a UITextView, I can’t seem to access the “Did End on Exit” action. Any suggestions on how to make this happen?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-17T18:31:54+00:00Added an answer on May 17, 2026 at 6:31 pm

    new Answer

    On your View, you’d have a UIBarButton (“Done”) that is connected to the IBAction below:

    - (IBAction)doneEditing:(id)sender {
        [textView resignFirstResponder];
    }
    

    Where textView is your textView outlet defined in your .h file and connected in Storyboard or .xib file. Like this:

    @property (retain, nonatomic) IBOutlet UITextView *textView;
    

    old Answer

    Check the following:

    1. Is UITextViewDelegate specified
      in .h
    2. Implement delegate method
      for uitextview:
      textViewShouldEndEditing, return YES
    3. make sure your .m (controller) is the
      delegate for uitextview in IB
    4. resignFirstResponder should now
      work.
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have been trying to use Jeditable to make my html table editable. However
I have a ListBox in a Silverlight Application. I'm trying to make an editable
I'm trying to make an editable table for a tournament using jQuery and ajax.
I am trying to make editable text. What I have is a line of
I'm trying to make an editable table. I have a dynamic table, columns can
I am trying to make editable listbox that gives user ability to update listitem
I am trying to make an editable box (kind of a richTextBox) using html5
I'm using a RadGridView (Telerik). I'm trying to make a column editable only for
I'm trying to make ESRI's ArcGIS combobox editable. I'm using eclipse and writing in
Okay, so I'm trying to make this action change a user-editable textfield if the

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.