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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 9, 20262026-06-09T06:13:14+00:00 2026-06-09T06:13:14+00:00

I have an iPad application in which resignFirstResponder does’t seems to be working. I

  • 0

I have an iPad application in which resignFirstResponder does’t seems to be working.
I have tried many solutions. I am just calling resign first responder from the instance of the firstResponder object but keyboard is remain there on the screen. THen I tried by iterating all the window to get the instance of the first responder and then I am calling the resignFirstResponder from that instance.

I also try by creating the category of the UIViewController for the following methods.

  - (BOOL)disablesAutomaticKeyboardDismissal
    {
         return NO;
    }

But this solution is also not working for me. And this keyboard problem is there in all the textfield of application not only for some specific textfield.

Update:
In different part of the app I am using different code for this purpose. Here is the code

- (void)textFieldDidEndEditing:(UITextField *)mtextField
 {
 [mtextField resignFirstResponder]; this one is not required but I have just write   it here.
 }

- (BOOL)textField:(UITextField *)theTextField shouldChangeCharactersInRange:(NSRange)range replacementString:(NSString *)string
{
if([string hasSuffix:@"\n"])
{
    [theTextField resignFirstResponder];
    return NO;
}
return YES;
}

Update: When I try by running the application in the simulator, some times it resignFirstResponder is working, but not on every launch even in simulator.

  • 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-06-09T06:13:16+00:00Added an answer on June 9, 2026 at 6:13 am

    I got the solution for this problem. Actually there seems to some change in the apple cocoa API. In my app I have an UIAlertView, which we used to display to show that some operation is going on and user should wait to finish it. For that purpose the code I use in my app was

    - (void)displayAlertView
       {
         UIAlertView *alertView = creating the object;
         UIActivityIndicatorView *activityIndicator= creating the object;
         [alertView addSubview:activityIndicator];
         [activityIndicator startAnimating];
         [alertView show];
         [alertView release];
        }
    
    -(void)didPresentAlertView:(UIAlertView *)alertView
     {
          [alertView dismissWithClickedButtonIndex:0 animated:NO];
     }
    

    The problem get resolved when I use the code below in my application

      -(void)didPresentAlertView:(UIAlertView *)alertView
     {
          [self performSelector:@selector(dismissView:) withObject:alertView afterDelay:0.0];
    
     }
    
      -(void)dismissView:(UIAlertView*)alertView
     {
          [alertView dismissWithClickedButtonIndex:0 animated:NO];
     }
    

    I think here some thing is going wrong in the UIAlertView, and because of that keyboard is not hiding when resigning as the first responder.

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

Sidebar

Related Questions

i'm working in ipad application,i have a viewController A which have many subviews viewcontroller
I have an existing iPad application to which I've just added core data versioning.
I have an iPad application which has many categorized images I need to switch
We are currently working on an iPad application which will have the following functionality:
We have an iPad/iPhone enabled web application which was working good on iOS 5.1
I have created an IPAD application which supports on Portrait orientation. Before uploading on
In one of the iPad Application, I am working I have added custom views
Has Anyone tried using PDF in iPad Application, using CGPDf functions. I have used
I have an iPad application which requires me to stream a video to a
I have implemented ipad application in which i want parse table of content but

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.