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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 29, 20262026-05-29T09:30:48+00:00 2026-05-29T09:30:48+00:00

I have a UIImageView inside of my UIViewController. It loads an image that is

  • 0

I have a UIImageView inside of my UIViewController. It loads an image that is 81×37 with an origin of 0x20. What I am trying to do is create that image as my background as well as a logo. What I mean by that is when I start my application I would like the image to encompass the whole screen and once I have all my data loaded and ready to display out to the user I would like to shrink it to just be an icon at the upper left hand side of the screen. I would like to say that the code for resizing works, however it seems to stretch the image and cut it off about half way. So either it is rendering outside the dimensions of the screen or only renders what it can.

Below is a code snippet of how I handle my frame resizing which is done in both my viewDidLoad and my isReady functions.

- (void) viewDidLoad
{
    originalSize = CGRectMake(self.logoImage.frame.origin.x, self.logoImage.frame.origin.y, self.logoImage.frame.size.width, self.logoImage.frame.size.height);
    fullScreenSize = CGRectMake(0.0, 0.0, [[UIScreen mainScreen] bounds].size.width, [[UIScreen mainScreen] bounds].size.height);
    [self.logoImage setFrame:fullScreenSize];
}

- (void)isReady:(BOOL)initialized
{
    if(initialized)
    {
        [self.logoImage setFrame:self.originalSize];
    }
    else
    {
        [self.logoImage setFrame:self.fullScreenSize];
    }
}
  • 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-29T09:30:48+00:00Added an answer on May 29, 2026 at 9:30 am

    I would like to thank Damo for answering my question. The answer is in the comments.

    Here is Damo’s answer –

    Have you checked the fullScreenSize to see if the frame it is being
    set to, is actually orientated correctly; i.e. “Stretch the image and
    cut it off halfway” sounds like it has a landscape frame when it
    should have a portrait frame (or vice versa). If that is the case look
    for better ways to determine the frame.

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

Sidebar

Related Questions

I have a UIImageView that is housed inside a UIScrollView . The image in
I have a UIView container that has two UIImageView s inside it, one partially
I have a UIImageView showing a image that is larger than it's frame. It's
I have a UIImageView that starts off with an image (loading.png) specified in IB.
i have a UIImageView object that i'm trying to get x coordinate of. I
I have a UIImageView that I allocated inside of a UIView. I want to
I have a Background view (UIImageView) in that i am adding a view(UIView). this
I have an UIImageView with an image (map) inside of a UIScrollView. I add
I Have a UIScrollview with a UIImageView inside where I scroll from an image
I have an image inside an UIImageView which is within a UIScrollView. What 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.