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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 3, 20262026-06-03T01:34:38+00:00 2026-06-03T01:34:38+00:00

I have a UITableView with CustomCells which contain a TextField. Look at the pictures

  • 0

I have a UITableView with CustomCells which contain a TextField. Look at the pictures which i have uploaded.

Picture1 Picture2
I want that if i start to scroll the keyboard should hide.

I tried it with

  - (void) scrollViewWillBeginDragging:(UIScrollView *)scrollView
{
   NSLog(@"Got called");
   ProductTableCell *cell;
   [cell.mengeTextField  resignFirstResponder];

}

Console-Log:

2012-04-24 12:57:48.924 Book-App[21029:15803] Got called
2012-04-24 12:57:50.535 Book-App[21029:15803] Got called
2012-04-24 12:57:51.681 Book-App[21029:15803] Got called

But this is not working for me.

Is there a other solution?

  • 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-03T01:34:39+00:00Added an answer on June 3, 2026 at 1:34 am

    Your problem is what Arcank said, cell is not defined.

    - (void) scrollViewWillBeginDragging:(UIScrollView *)scrollView
    {
       NSLog(@"Got called");
       ProductTableCell *cell;// <---this cell is nil
       [cell.mengeTextField  resignFirstResponder];
    }
    

    Now if you cannot access the cell, there is a way to cheat. Simply put something else a first responder, then resign it right away.

    - (void) scrollViewWillBeginDragging:(UIScrollView *)scrollView
        {
           NSLog(@"Got called");
           [scrollView becomeFirstResponder];
           [scrollView resignFirstResponder];//You might not even need this (not sure)
        }
    

    This would take care of your problem. If scrollView cannot become first responder just use other things that can. (improvise).


    Edit: Just read you and Aalok Parikh comments, this is pretty much what he is trying to say.

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

Sidebar

Related Questions

Short Intro Currently I have a UITableView which is filled with custom cells that
I have UiTableView containing some data, and I want to scroll the UiTableViewCells horizontally
I have UITableView with custom cells, which contain uilabels. I am using it to
I'm trying to build a menu using a UItableView with Custom cells which have
I have a UITableView with custom cells that were defined in the xib file,
I have a UITableView on a view. This UITableView has cells which are made
In my app, I have a UITableView which has some custom cells and in
I have a UITableView that is populated with cells by core data and an
I have a UITableView that uses custom cells, loaded from nibs, and hooked up
I'm very new to iOS. I have a UITableView that filled with many custom

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.