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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 14, 20262026-05-14T19:06:31+00:00 2026-05-14T19:06:31+00:00

I have an UITextView and I don’t want check editable option, how can call

  • 0

I have an UITextView and I don’t want check editable option, how can call keyboard via a button?
This code doesn’t work for me!

-(IBAction) yourButtonClick
{
    [myTextView becomeFirstResponder];
    [self.view addSubview:myTextView]; 
}
  • 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-14T19:06:32+00:00Added an answer on May 14, 2026 at 7:06 pm

    From the iPhone Application Programming Guide

    However, you can programmatically
    display the keyboard for an editable
    text view by calling that view’s
    becomeFirstResponder method. Calling
    this method makes the target view the
    first responder and begins the editing
    process just as if the user had tapped
    on the view.

    So to show the keyboard programmatically,

    [textView becomeFirstResponder];
    

    However, the keyboard will never show if the textView is not editable.

    The purpose of showing the keyboard is to allow editing. I assume you just don’t want the keyboard to appear when the user taps the text view. In this case, you can enable editable programmatically when the button is tapped.

    -(IBAction) yourButtonClick
    {
         myText.editable = YES;
         [myText becomeFirstResponder];
    
    }
    

    Then in the UITextViewDelegate, disable editable when the user finishes editing.

    - (void)textViewDidEndEditing:(UITextView *)textView {
      textView.editable = NO;
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a UITextView(not editable). When user tries to select text I want to
I have a UITextView inside a UITableViewCell in a table. editable for the UITextView
I have a UITextView and I want have two buttons. When the user taps
I have a UiTextView inside a custom UITableViewCell. The keyboard appears when i select
I have a UITextView that has a lot of content. I have a button
I have UITextView and I want to use scroll bar when text is longer
this is killing me but is there any simple way to have objective-c code
In a UITextView have a text which is for readonly and dont want any
I have a UITextView, user can write maximum 160 character in the textView. How
I'm trying to resize my UITextView when the keyboard appears, but I don't know

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.