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 4548340
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 21, 20262026-05-21T16:12:29+00:00 2026-05-21T16:12:29+00:00

I have an UITextView and if the user touches it, an accessory view will

  • 0

I have an UITextView and if the user touches it, an accessory view will be added to the keyboard, so that the user can hide the keyboard again.

I now added an UITextField and was wondering how to add the same accessory view to the keyboard once it pops upon for the UITextField. Is there an equivalent for the following code for UITextfield? textFieldShouldBeginEditing does not exist…

 - (BOOL)textViewShouldBeginEditing:(UITextView *)aTextView {


    if (aTextView.inputAccessoryView == nil) {
        aTextView.inputAccessoryView = accessoryView;    
        self.accessoryView = nil; // After setting the accessory view for the text view, we no longer need a reference to the accessory view
    }

    return YES;
}
  • 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-21T16:12:30+00:00Added an answer on May 21, 2026 at 4:12 pm

    There is the UITextFieldDelegate protocol in which you can find the method

    - (BOOL)textFieldShouldBeginEditing:(UITextField *)textField
    

    Have been looking for that one?

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have n number of UITextview and that are added to UIScrollview.and uiscrollview is
I have 4 editable uitextviews, user can set its font font color etc. Now
I have a ViewController that manages a view full of controls, including UITextView s,
How can I initialize a UITextView that is nice and pretty. I have the
I've found some code that helps me resign the keyboard when a user touches
I have one UITextView which is on the bottom of view. When user tap
I have a full-screen UITextView that gets smaller whenever the keyboard appears, so that
I have a UITextView where the user can create notes and save into a
I have a UITextView that I'm trying to keep hidden from the user, except
I have a UITextView, user can write maximum 160 character in the textView. How

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.