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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 20, 20262026-05-20T02:04:50+00:00 2026-05-20T02:04:50+00:00

Basically on the click of a cell, I want the table to animate up

  • 0

Basically on the click of a cell, I want the table to animate up (shortening it’s height) and a ‘detail’ view to slide up taking up the space now available..

I have the tableView shortening properly, but I am having problems getting the second view to slide in..

CGRect frame = self.tableview.frame; // (drilldown table)
if(frame.size.height > 600)
{
    CGRect detailFrame = StudyDetailView.view.frame; // (detailed view I want to slide up
    detailFrame.origin.y = (frame.size.height-200);
    self.tableview.autoresizingMask = UIViewAutoresizingNone;
    [UIView beginAnimations:nil context:nil];
    [UIView setAnimationDuration:.3];
    StudyDetailView.view.frame = detailFrame; // <-- this does not work.
    self.tableview.frame = CGRectMake(0,0,frame.size.width,frame.size.height-200); // <-- this works.

    [UIView commitAnimations];


}

Update
My fix:

StudyListDetailController.m

- (void)viewDidLoad {
    CGRect frame = self.view.frame;
    self.view.frame =  CGRectMake(0,900,frame.size.width,frame.size.height);
    [super viewDidLoad];
}

In my table row select…

if(frame.size.height > 600)
{

    CGRect detailFrame = StudyDetailView.view.frame;

    self.tableview.autoresizingMask = UIViewAutoresizingNone;
    detailFrame.origin.y = (frame.size.height-200);
    detailFrame.size.height = 200;
    [self.view addSubview:StudyDetailView.view];
    [UIView beginAnimations:nil context:nil];
    [UIView setAnimationDuration:.3];

    self.tableview.frame = CGRectMake(0,0,frame.size.width,frame.size.height-200);
    StudyDetailView.view.frame = detailFrame;
    [UIView commitAnimations];

}
  • 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-20T02:04:51+00:00Added an answer on May 20, 2026 at 2:04 am

    where do you initially set StudyDetailView.view.frame? It looks like you’ve only set the Y value.
    Try doing

    NSLog(NSStringFromCGRect(detailFrame));

    and see what shows up in the console, I’m guessing only the y value will be set, and the width and height are just 0.

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

Sidebar

Related Questions

Basically, what I want to do is launch an *.exe file when I click
Can I listen to Alert button click between components using AsyncToken? Basically, I want
I have an AJAX function triggerd by a click which basically copies one table
I wrote a script that allows users to click onto a table cell and
here is the code: http://jsfiddle.net/4WyPq/ So basically when I click 'button1' it animates then
This is basically the same question as Click items in select box, and then
Basically, I have a settings window, and when you click OK, it's suppose to
Basically I have a tabbed Panel I'm creating. When the user click on a
I've been trying to get a sort of rudimentary filter working. Basically, you click
Basically I want to check the extended permissions the user has granted my app.

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.