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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T21:41:28+00:00 2026-05-23T21:41:28+00:00

On the iPad we get much more room to work with, so presenting full

  • 0

On the iPad we get much more room to work with, so presenting full screen modal views is not ideal.

I know how to present modal views in the new formSheet and a close approach can be found on this question: iPad iTunes Animation

The problem is that you cannot choose where the animation will come from, so it just defaults and appears from the center, I want to customize it so that it appears from a specific location.

The best example I can find for this animation can be seen on the first few seconds of this video

If anyone can point me on the right direction using code, tutorials or documentation I would greatly appreciate it!

Update:

After some investigation I have found that this can be done using layers and Core Animation for the first part; and then animate it a formSheet modal view but I still dont quite understand how to achieve it, hopefully you guys can help!

  • 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-23T21:41:29+00:00Added an answer on May 23, 2026 at 9:41 pm

    What I did was creating a new category for UIViewController as follows

    UIViewController+ShowModalFromView.h

    #import <Foundation/Foundation.h>
    #import <QuartzCore/QuartzCore.h>
    
    @interface UIViewController (ShowModalFromView)
    
    - (void)presentModalViewController:(UIViewController *)modalViewController fromView:(UIView *)view;
    
    @end
    

    UIViewController+ShowModalFromView.m

    #import "UIViewController+ShowModalFromView.h"
    
    @implementation UIViewController (ShowModalFromView)
    
    - (void)presentModalViewController:(UIViewController *)modalViewController fromView:(UIView *)view
    {
        modalViewController.modalPresentationStyle = UIModalPresentationFormSheet;
    
        // Add the modal viewController but don't animate it. We will handle the animation manually
        [self presentModalViewController:modalViewController animated:NO];
    
        // Remove the shadow. It causes weird artifacts while animating the view.
        CGColorRef originalShadowColor = modalViewController.view.superview.layer.shadowColor;
        modalViewController.view.superview.layer.shadowColor = [[UIColor clearColor] CGColor];
    
        // Save the original size of the viewController's view    
        CGRect originalFrame = modalViewController.view.superview.frame;
    
        // Set the frame to the one of the view we want to animate from
        modalViewController.view.superview.frame = view.frame;
    
        // Begin animation
        [UIView animateWithDuration:1.0f
                         animations:^{
                             // Set the original frame back
                             modalViewController.view.superview.frame = originalFrame;
                         }
                         completion:^(BOOL finished) {
                             // Set the original shadow color back after the animation has finished
                             modalViewController.view.superview.layer.shadowColor = originalShadowColor;
                         }];
    }
    
    @end
    

    It’s pretty straight forward. Please let me know if this helps you.

    UPDATE

    I’ve updated the answer to use animation blocks instead of [UIView beginAnimations:nil context:nil]; / [UIView commitAnimations] pair.

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

Sidebar

Related Questions

By default iPad modal form sheets get rounded corners. In a couple of Apple's
The following Code works fine on iPhone, but not on iPad. Only get a
My programming decissions are directly related to how much room I have left, or
I don't know how much you can help me because its under the NDA,
I'm building an app for the ipad that uses the youtube api to get
I've written an application for the iPad that I'd now like to get working
I've seen this with other platforms (especially iPhone/iPad) but have not been able to
I've seen this with other platforms (especially iPhone/iPad) but have not been able to
I am trying to get my iPhone application to work with HTTPS in addition
I'm wondering if there is a way to get iPad only customer reviews for

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.