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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 24, 20262026-05-24T20:28:22+00:00 2026-05-24T20:28:22+00:00

I have a very weird bug here, this is the scenario; -I click on

  • 0

I have a very weird bug here, this is the scenario;

-I click on one of the textfields on my UITableView, uikeyboard appears,

–Then without pressing done, I click another textfield on screen(a disabled one),

-This disabled textfield pushes a detailview controller,

-I do my job on the detailview and return back,

-Surprize! the main UITableview is no more scrollable to bottom anymore! so I can not edit the bottom cells anymore!

This does not happen IF I press done after editing(so close the keyboard) and then click the detail view, now it works good.

I think it is something about resignfirstResponder is not called before I switch to another view, so I tried to send this msg to all the textfields in the tableview..but it got worse.

I tried also adding this line below just before I push the detailviewcontroller, but not worked, this is interssting cause this is what I call to resign the number pad normally, and it works when it is called from my custom “done” button to dismiss the nuber pad

[[self view] endEditing:YES];

And this is how I set the uikeyboards depend on the content in cellforRowAtIndex method

    if(somelogic){      
    cell.textField.keyboardType=UIKeyboardTypeNumberPad;                
    [self resignFirstResponder];        
    [self becomeFirstResponder];        
}

else{       
    cell.textField.keyboardType=UIKeyboardTypeDefault;
    [self resignFirstResponder];        
    [self becomeFirstResponder];        
}

Any Ideas?

  • 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-24T20:28:22+00:00Added an answer on May 24, 2026 at 8:28 pm

    Just call [currentTextField resignFirstResponder] before you push the detail view controller.

    Set the currentTextField in the following method.

    - (void)textFieldDidBeginEditing:(UITextField *)textField {
    
        currentTextField = textField;
        // Your code here 
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Ok so this bug is very weird here is my code, you can actually
This is very weird. I have the following code: Assert.AreEqual(new DateTime(2000, 1, 1), DateTime.ParseExact(2000,
i know this question was asked before but i have this very weird beginner
Hey fellas, I have this weird bug, and I have no clue how to
I have a very weird problem that I can't understand. This is C code:
I have a very weird scenario in struts2. When I do the following: <s:property
I have a very weird problem. This ONLY affects Firefox on Mac, using the
I have a very weird bug that I can't seem to figure out. I
I found this very weird bug that I can't understand. First of all inside
I have a very weird problem: sometimes when I call nHibernate update to an

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.