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 am trying to make an Outlook 2003 add-in using Visual Studio 2008 on
I am trying to make an editable text object in cocoa that contains no
I am trying to do a simple task: I have an editable text field,
i am trying to make a text box no editable for the users. I
I'm trying to make PDF forms (aka AcroForms) editable in Java. So far i
Many web applications today have spreadsheets. I was trying to make a very similar
I'm trying make a <dl> to define the icons I am using on the
I'm trying to make a custom control in Silverlight have the same functionality as
I have the following code iam trying to make the text div under the
I am trying to make a form that has inline editing (using jEditable) and

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.