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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T07:00:58+00:00 2026-05-23T07:00:58+00:00

i am making my application universal, but i am having a small problem with

  • 0

i am making my application universal, but i am having a small problem with resizing my background image. Here’s my code

 UIImageView *myImage = [[UIImageView alloc] initWithImage:[UIImage imageNamed:@"dubstep2.jpg"]];
[self.view addSubview:myImage];
UIScreen *screen = [UIScreen mainScreen];
[myImage setFrame:[screen applicationFrame]];
[myImage release];

I am putting this in viewDidLoad. The image resizes, but it does not resize “correctly” simply because i have a tabBar. So a portion of the view is hidden, and it leaves a small gap at the top. I need this view to shift up when it resizes. I have tried adding an image view in interface builder and assigning the image to that, and then adjusting it in IB but it still does not shift.

  • 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-23T07:00:58+00:00Added an answer on May 23, 2026 at 7:00 am

    It is not entirely clear as to whether you are using a UITabBar object or UITabBarController. It is most likely to be a UITabBarController, so I shall assume that the code presented is from one of your view controllers. In such case, you shall have to do this –

    UIImageView * myImage = [[UIImageView alloc] initWithImage:[UIImage imageNamed:@"dubstep2.jpg"]];
    myImage.frame = self.view.bounds;
    myImage.autoresizingMask = UIViewAutoresizingFlexibleHeight | UIViewAutoresizingFlexibleWidth; // This will make sure that `myImage` is latched onto its parent view's edges.
    
    [self.view addSubview:myImage];
    [myImage release];
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am making an application with Java Swing and i have a problem. I
I am making an application that does some custom image processing. The program will
I'm making a small web application in Seaside. I have a login component, and
I'm making a small quiz-application in Flash (and ActionScript 3). Decided to use the
I am making an application where audio will play in the background. In the
I am making an universal application for iPhone and iPad. I know there is
I am newbie to class and objects.Here I am making an application for invoice.So
Where is a good place to start with making an application in .NET that
I'm making a Java application with an application-logic-thread and a database-access-thread. Both of them
I'm making a web application and I got the design for it from a

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.