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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 6, 20262026-06-06T23:51:32+00:00 2026-06-06T23:51:32+00:00

Using storyboard, I create a transition to another view controller using modal style and

  • 0

Using storyboard, I create a transition to another view controller using modal style and form sheet presentation. But always has the same size.

How can I change this view controller size using storyboard?
I found some code that almost work, but I never get mu modal view controller centered.
How to resize a UIModalPresentationFormSheet?
Note that I use Storyboard and that code is not for storyboard.

Do you have any idea or suggestion?

By the way, it seems prepareForSegue os called BEFORE viewDidLoad, is this normal?

Thanks a lot for replies.

  • 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-06T23:51:33+00:00Added an answer on June 6, 2026 at 11:51 pm

    Although it’s a little late.

    I’ve implemented it before.. I’ve managed to get UIPresentationFormSheet centered.
    Here’s my code..

    [detailView setModalTransitionStyle:UIModalTransitionStyleFlipHorizontal];
    [detailView setModalPresentationStyle:UIModalPresentationFormSheet];    
    [self presentModalViewController:detailView animated:YES];
    detailView.view.superview.autoresizingMask = UIViewAutoresizingFlexibleTopMargin | UIViewAutoresizingFlexibleBottomMargin;
    float heightOfFrame = 200.0f;
    float widthOfFrame= 400.0f;
    detailView.view.superview.frame = CGRectMake(
        self.view.superview.center.x - (widthOfFrame/2),                                         
        self.view.superview.center.y - (heightOfFrame/2),
        widthOfFrame,
        heightOfFrame
    ); 
    

    Hope I’ve helped you in some ways.

    Regards, Steve

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

Sidebar

Related Questions

i am using xcode4 and storyboard to create an application form. I would like
I am using Storyboard to create a tab bar which has 6 tabs. The
Using storyboard, I have a table view controller containing multiple dynamic prototype cells. One
I am using xcode 4.2 with storyboard to create an iphone app. When I
Using storyboard, static cells, in cellForRowAtIndexPath: the line UITableViewCell *cell = [tableView dequeueReusableCellWithIdentifier:CellIdentifier]; always
I am building an app using storyboard. I have added a table view to
I'm using storyboard to create a grouped UITableView . Within the table I have
So, using storyboard you can create a segue from the UITableViewCell from the first
In iOS5 using storyboard feature I want to create a custom container which will
I am attempting to create a very basic login screen, using the Storyboard designer

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.