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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 18, 20262026-06-18T00:52:24+00:00 2026-06-18T00:52:24+00:00

to make my problem understandable, here an excerpt from my code: [UIView animateWithDuration:0.5 animations:^{

  • 0

to make my problem understandable, here an excerpt from my code:

[UIView animateWithDuration:0.5 animations:^{

    taskTable.frame = CGRectMake(
        taskTable.frame.origin.x,
        taskTable.frame.origin.y,
        taskTable.frame.size.width,
        127
    );

} completion:^(BOOL finished) {

    [self.taskTable reloadData];

}];

This is the basic situation: taskTable is a UITableView and it is integrated in a UIViewController. The first block works properly, the taskTable is after 0.5 seconds less on the height.

My problem starts in the completion block: after the taskTable is reloaded, the taskTable is again equal to the original height. The original height is set in the storyboard by the way.

Can someone tell me the reason for that? Can I prevent this behavior?

Here is a snapshot of the storyboard:

enter image description here

  • 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-18T00:52:26+00:00Added an answer on June 18, 2026 at 12:52 am

    To give the question an answer:

    you can disable autolayout to solve the problem, but that’s not the nicest way.

    How I solve the problem: I definied a constraint between the top of the superview and the tableView. After that I add the follwing in code (taskTableTop is that constraint):

    [self.view removeConstraint:taskTableTop]; 
    
    [self.view addConstraint:[NSLayoutConstraint constraintWithItem:taskTable
                                                          attribute:NSLayoutAttributeTop
                                                          relatedBy:NSLayoutRelationEqual
                                                             toItem:jobDesc
                                                          attribute:NSLayoutAttributeBottom
                                                         multiplier:0
                                                           constant:size.height + 38]];
    

    I don’t know if there is a easier way to do this.

    If someone has a better answer ready, feel free to tell me (us) ;o)

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

Sidebar

Related Questions

Got a problem which to me make no sense. So here goes: I have
First I will present some code, then make a description of a problem: class
I make the problem shorter. Actually I have data much longer than this. I
The problem: I make jQuery .ajax calls by clicking on some cursor images in
I have the following problem: I make the call to the method of a
The problem I am trying to make a generic http module in asp.net C#
The problem is that recently on my company we need to make an installer,
My essential problem is how to make arithmetic with floats on x86 behave like
I have following problem: I have to make a ASP.NET Webapplication with a two-row
I'm having a problem trying to make eclipse and aspectj work for Dynamic Web

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.