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

The Archive Base Latest Questions

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

I have dragged a UIImageView onto the UIViewController window in storyboard. I used the

  • 0

I have dragged a UIImageView onto the UIViewController window in storyboard. I used the handles to make it take up the entire window. I set the mode of the UIImageView to “Aspect Fit”. My goal is for the picture to take up the entire window when the iPhone is held in the same orientation that the image was taken.

But for some reason there’s a little bit of space above and below every image.

Also I have it set up for the navigation bar and status bar to disappear when the user touches the image by using a hidden UIButton. This works okay except that the image shifts down when the navigation and status bars come back into view. The image only shifts down when I have this code:

    self.navigationController.navigationBarHidden = YES;
    self.navigationController.navigationBarHidden = NO;

which I use to get the navigationBar to redraw itself below the statusbar because sometimes the navigationbar will be drawn underneath the statusbar (this happens when making the navigationbar and statusbar reappear at the same time.)

How can I make my images display full screen without all these quirks?

EDIT:

I think it may have something to do with this:

The camera’s aspect ratio is 4:3 and the screen’s aspect ratio is 3:2.
So there is simply no way for the camera picture to fill the screen
unless you’re willing to crop is to 3:2. To do that, apply an
appropriate scale transform.

is it possible to apply an affinetransform to an image in a uiimageview?

  • 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:53:48+00:00Added an answer on May 28, 2026 at 12:53 am

    You’ll want to set wantsFullScreenLayout to YES on your instance of UIViewController. From the documentation for wantsFullScreenLayout.

    When a view controller presents its view, it normally shrinks that
    view so that its frame does not overlap the device’s status bar.
    Setting this property to YES causes the view controller to size its
    view so that it fills the entire screen, including the area under the
    status bar. (Of course, for this to happen, the window hosting the
    view controller must itself be sized to fill the entire screen,
    including the area underneath the status bar.) You would typically set
    this property to YES in cases where you have a translucent status bar
    and want your view’s content to be visible behind that view.

    If this property is YES, the view is not resized in a way that would
    cause it to overlap a tab bar but is resized to overlap translucent
    toolbars. Regardless of the value of this property, navigation
    controllers always allow views to overlap translucent navigation bars.

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

Sidebar

Related Questions

I am using storyboards and have dragged a scrollview window onto a view. In
I have dragged a empty asp.net table onto my webform. I generate all the
I have a UIToolbar where I have dragged a UIButton. When I set the
I have dragged and dropped Bar Button Item in Storyboard over navigation bar created
I have created a simple app using storyboard. In storyboard file, i have dragged
i have dragged a UIImageView into a view and created an IBOutlet object in
Using Flash CS5 Professional I have created a symbol, dragged it onto the stage,
I have a view which I dragged a UITableView in it, and 2 UIImageView
I have added a XIB based UIViewController to my solution and dragged some UIViews
I seem to have found a bug in jQuery UI that duplicates dragged elements

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.