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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 12, 20262026-05-12T18:30:18+00:00 2026-05-12T18:30:18+00:00

This is related to my last question . I have an application that I

  • 0

This is related to my last question.

I have an application that I created from the “Navigation-based application” template in Xcode. (I have a UINavigationController with a UITableViewController subclass named RootViewController.)

The table shows a list of strings the user can interact with. The nav bar has the standard Edit/Done button on the left, and a Plus-sign button on the right. I would like to slide a view loaded from a .xib file from under the nav bar when the user touches the plus button.

I attempted to implement it by doing the following:

NSArray *xibContents = [[NSBundle mainBundle] loadNibNamed:@"NewNameView" owner:self options:nil];
UIView *view = [xibContents objectAtIndex:0];
[self.view addSubview:view];
view.frame = CGRectMake(view.frame.origin.x, view.frame.origin.y - 44, view.frame.size.width, view.frame.size.height);
[UIView beginAnimations:@"openAdd" context:nil];
view.frame = CGRectMake(view.frame.origin.x, view.frame.origin.y + 44, view.frame.size.width, view.frame.size.height);
[UIView commitAnimations];

(The height of the view is 44 pixels.) This animates the view sliding down, but it covers the first table cell. I’d like for the table view to slide down as well.

  • 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-12T18:30:18+00:00Added an answer on May 12, 2026 at 6:30 pm

    The best way to do this to use directly UITableView methods.

    //Update your data model with the new row
    
    [self.tableView beginUpdates];
    
    NSArray* indexPaths = [[NSArray alloc] initWithObjects:[NSIndexPath indexPathForRow:0 inSection:0], nil];
    [self.tableView insertRowsAtIndexPaths:indexPaths withRowAnimation:UITableViewRowAnimationTop];
    [indexPaths release];
    
    [self.tableView endUpdates];
    

    Your new row will looks like it would come from under the Navigation bar.

    For more info on batch insert/deleting of row and sections.

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

Sidebar

Related Questions

this question is partially related to my last question . I have a generic
This is related to Alternate Application.Run Winform In Program.cs File I have created textfile
This is related to my last question . We have an app where we
I have searched here, GooBingHooVista'd the world and read this related question for VS
This question is kind of related to our web application and it is bugging
I'm using FitSharp to test an application and have a question related to testing
This is somewhat related to another question that I've asked that I've pretty much
related to my last question , I now have the following problem: function TNodeFactory
Closely related to this question: Bash printf prefix I have the following Bash script
This question is an extension of this Related question . Taking Derick's advice, I

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.