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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 28, 20262026-05-28T00:18:34+00:00 2026-05-28T00:18:34+00:00

I am implementing SlideView animation which will slide from top or bottom depending on

  • 0

I am implementing SlideView animation which will slide from top or bottom depending on the configuration.

For the slideFromTop it works perfectly fine. For slideFromBottom it only shows half of the slide view. Here is my SlideViewController.

const int VIEW_HEIGHT = 44; 

-(void) slideInFromBottom 
{
    CGRect screenSize = [[UIScreen mainScreen] bounds];

    self.view.frame = CGRectMake(0,screenSize.size.height, self.view.frame.size.width, VIEW_HEIGHT);

    [UIView animateWithDuration:2.0 animations:^{

        self.view.frame = CGRectMake(0, screenSize.size.height - VIEW_HEIGHT, self.view.frame.size.width,VIEW_HEIGHT);

    } completion:^(BOOL finished) {

        [UIView animateWithDuration:2.0 delay:2.0 options:UIViewAnimationOptionAllowAnimatedContent animations:^{

            self.view.frame = CGRectMake(0, screenSize.size.height, self.view.frame.size.width, VIEW_HEIGHT); 

        } completion:^(BOOL finished) {

        }];


    }];

}

-(void) slideInFromTop
{
    self.view.frame = CGRectMake(0, (-1) * VIEW_HEIGHT, self.view.frame.size.width, VIEW_HEIGHT);

    CGRect temp = self.view.frame;

    [UIView animateWithDuration:2.0 animations:^{

        self.view.frame = CGRectMake(0, 0, self.view.frame.size.width,VIEW_HEIGHT);

    } completion:^(BOOL finished) {

        [UIView animateWithDuration:2.0 delay:2.0 options:UIViewAnimationOptionAllowAnimatedContent animations:^{

            self.view.frame = temp;

        } completion:^(BOOL finished) {

        }];


    }];

}

The user calls the SlideViewController using the following code:

-(IBAction) save:(id) sender 
{
    SlideViewController *slideViewController = [[SlideViewController alloc] initWithTitle:@"Customer has been saved!" animationType:SlideInFromTop];
    [self.view addSubview:slideViewController.view];
} 

UPDATE 2:

 self.view.frame = CGRectMake(0, screenSize.size.height - (1.3 * VIEW_HEIGHT), self.view.frame.size.width,VIEW_HEIGHT);
  • 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-28T00:18:35+00:00Added an answer on May 28, 2026 at 12:18 am

    Save yourself some trouble and just download and install FTUtils

    Just drop the project into yours, include the header, then you can do the animation in one line:

    [myVu slideInFrom:kFTAnimationTop duration:0.75f delegate:self];
    

    It has over a dozen very useful animations like the “pop in” effect on UIAlertViews. I litteraly use it all the time.

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

Sidebar

Related Questions

Im implementing a pool billiard game in Java and it all works fine. It
I implementing OLE DB provider for my custom database. It will be used from
Implementing a custom VM and I've come to use registers (these will store pointers
When implementing a Matrix construct using arrays, which would be more efficient? Using a
While implementing my own IFilter I found that most likely some consumers will require
While implementing the code from this question on my project I realized there's 3
When implementing a graph search algorithm, I needed a priority queue which allowed for
Im implementing my own proto in Java, it will use a heartbeat over a
Implementing Equals() for reference types is harder than it seems. My current canonical implementation
Implementing a 'sandbox' environment in Python used to be done with the rexec module

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.