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

  • Home
  • SEARCH
  • 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 6536325
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T10:28:46+00:00 2026-05-25T10:28:46+00:00

Lets say we have a custom UITableViewCell So whenever I click custom button on

  • 0

Lets say we have a custom UITableViewCell

So whenever I click custom button on cell.. it should expand to the some extent (you can say 40 height more…) and when i click again to the same custom button it should collapse to the previous height.

Developer’s please guide me.. how can I achieve this task

  • 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-25T10:28:47+00:00Added an answer on May 25, 2026 at 10:28 am

    Implement heightForRowAtIndexPath to calculate the right height. Then in the code for your button, force the table to reevaluate each cell’s height with beginUpdates plus endUpdates:

    [self.tableView beginUpdates];
    [self.tableView endUpdates];
    

    Changes to the tableview cells’ heights will automatically be calculated with heightForRowAtIndexPath and the changes will be animated too.

    In fact, instead of a button on your cell that does this, you might even just make selecting the cell do this in didSelectRowAtIndexPath.

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

Sidebar

Related Questions

Lets say I have a custom data type that looks something like this: public
lets say i have a custom widget which has a ClickHandler. Here's the example:
So, lets say I have a ComboBox with a custom data template. One of
For example, lets say I have a page and 2 custom controls on that
Lets say I have some domain objects that will need to be serialized/packed using
Lets say I have a custom control called FooBox. It is just a square
Lets say I have a custom collection and a custom object that have a
Lets say I have a custom control (child of System.Windows.Forms.UserControl) such as a graph.
Lets say I have some Django model that has a list of numbers as
Let's say that I have written a custom e-mail management application for the company

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.