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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 24, 20262026-05-24T16:26:26+00:00 2026-05-24T16:26:26+00:00

I have a UIButton and I am trying to develop an editable UITextField onclick

  • 0

I have a UIButton and I am trying to develop an editable UITextField onclick of UIButton.
Basically, I want the user to click on the button and edit the text and save it for future use.

So currently I have:

[notes_button addTarget:self action:@selector(editNote) forControlEvents:UIControlEventTouchUpInside];

I am not sure how to get a popup like UITextField onclick and add UITextField in editNote function.

  • 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-24T16:26:26+00:00Added an answer on May 24, 2026 at 4:26 pm

    Try this. First make your textfield hide on viewdidload – then on button push, fade it in.. make it editable, and pop up keyboard for user.

    //viewDidLoad
    
    yourTextField.alpha = 0;
    yourTextField.userInteractionEnabled = FALSE;
    
    -(void)editNote {
    
                //fade in text field after button push
                [UIView beginAnimations:nil context:NULL];
                [UIView setAnimationDelay:0];
                [UIView setAnimationDuration:0.75];
                yourTextField.alpha = 1;
    
                [UIView commitAnimations];
    
               //make text field editable
               yourTextField.userInteractionEnabled = TRUE;
    
              //pop up keyboard
               [yourTextField becomeFirstResponder];
    
    }
    

    ——- Update ——–

    Now that you have described what you are trying to do a little better. You will want to create an entirely new ViewController with the fields (UITextFields etc) on this new view controller.

    On button click you will code:

    TextFieldViewController * vc = [(TextFieldViewController *)[[TextFieldViewController alloc] init] autorelease];
    [self.navigationController presentModalViewController:vc animated:YES];
    [vc release];
    
    //you will need to create a button on this new ViewController and use this code to dismiss it when done.
    
    [[self parentViewController] dismissModalViewControllerAnimated:YES];
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm trying to programmatically click a UITextField after the user clicks on another UIButton,
I have a UIButton that is created inside of each table cell. I want
I am trying to have a button for selected rows of my table. Here
I have 2 UITableViews . When I click the UIButton outside of either UITableView
I'm trying to display a small refresh button using UIButton in a standard UIView
I have a pretty big issue. I am trying to create a favorite-button on
I am trying to make a UIButton that grows when pressed. Currently i have
I am trying to add the UIButton to UIScrollView . I have added the
I'm trying to create a view programmatically. The result that i want to have
I have a UIButton (a subclass of one, actually) that interacts with the user

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.