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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T22:29:41+00:00 2026-05-27T22:29:41+00:00

i have two edit text one edit text input should accept number only so

  • 0

i have two edit text one edit text input should accept number only so that i have show number pad. in number pad is there no done button. so now i add done button using this link now done button working fine.my problem is my one more edit text is normal keypad that key board also done button will showing.i want to avoid that done button in that particular edit text.enter image description here kindly guide me how can i remove that button in normal keyboard..

  • 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-27T22:29:42+00:00Added an answer on May 27, 2026 at 10:29 pm
    if ([[[UIDevice currentDevice] systemVersion] floatValue] >= 3.2)
    {
          [[NSNotificationCenter defaultCenter] addObserver:self    
                                                   selector:@selector(keyboardDidShow:)
                                                       name:UIKeyboardDidShowNotification 
                                                     object:nil];
    }
    else
    {
          [[NSNotificationCenter defaultCenter] addObserver:self 
                                                   selector:@selector(keyboardWillShow:) 
                                                       name:UIKeyboardWillShowNotification 
                                                     object:nil];
    }
    
    - (void)addButtonToKeyboard
    {
        // create custom button
    
        doneButton = [UIButton buttonWithType:UIButtonTypeCustom];
        doneButton.frame = CGRectMake(0, 163, 106, 53);
        doneButton.adjustsImageWhenHighlighted = NO;
    
        if ([[[UIDevice currentDevice] systemVersion] floatValue] >= 3.0) 
        {
            [doneButton setImage:[UIImage imageNamed:@"Btn-DoneDown-2.png"] forState:UIControlStateNormal];
            [doneButton setImage:[UIImage imageNamed:@"Btn-DoneUp-2.png"] forState:UIControlStateHighlighted];
        } 
        else
        {        
            [doneButton setImage:[UIImage imageNamed:@"Btn-DoneDown-1.png"] forState:UIControlStateNormal];
            [doneButton setImage:[UIImage imageNamed:@"Btn-DoneUp-1.png"] forState:UIControlStateHighlighted];
        }
    
        [doneButton addTarget:self action:@selector(doneButton:) forControlEvents:UIControlEventTouchUpInside];
    
        // locate keyboard view
    
        UIWindow* tempWindow = [[[UIApplication sharedApplication] windows] objectAtIndex:1];
        UIView* keyboard;
    
        for(int i = 0 ; i < [tempWindow.subviews count] ; i++) 
        {
            keyboard = [tempWindow.subviews objectAtIndex:i];
            // keyboard found, add the button
            if ([[[UIDevice currentDevice] systemVersion] floatValue] >= 3.2) 
            {
                if([[keyboard description] hasPrefix:@"<UIPeripheralHost"] == YES)
                    [keyboard addSubview:doneButton];
            }
            else
            {
                if([[keyboard description] hasPrefix:@"<UIKeyboard"] == YES)
                    [keyboard addSubview:doneButton];
            }
        }
    }
    
    - (void)keyboardWillShow:(NSNotification *)note 
    {
        if ([[[UIDevice currentDevice] systemVersion] floatValue] < 3.2) 
        {
            [self addButtonToKeyboard];
        }
    }
    
    - (void)keyboardDidShow:(NSNotification *)note 
    {
        if(doneButton)
        {
            [doneButton removeFromSuperview];
            doneButton = nil;
        }
        if ([[[UIDevice currentDevice] systemVersion] floatValue] >= 3.2) 
        {
            [self addButtonToKeyboard];
        }
    }
    
    - (void)doneButton:(id)sender 
    {
        [[NSNotificationCenter defaultCenter] removeObserver:self];
        [doneButton removeFromSuperview];
        doneButton = nil;
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have two edit Action methods, one for HttpGet and one for HttpPost. The
I have a form that has two buttons. One for saving a record and
I have a Controller with two Edit methods (see below). When I submit the
I have two view controllers in a tabbar which can both edit data. Therefore,
EDIT: I also have access to ESXLT functions. I have two node sets of
If two users edit the same wiki topic, what methods have been used in
EDIT: I have fixed all but two warnings now, so thank you all for
I have a view and it's composed of two tables. I want to edit
I have two applications written in Java that communicate with each other using XML
<form action=here.php method=POST> <input type=text name=text> <div id=one> <input type=hidden name=aaa value=one> <input type=submit

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.