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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T23:08:46+00:00 2026-05-27T23:08:46+00:00

I have a UIImageView that contains a pretty big image (3 +/- MB) and

  • 0

I have a UIImageView that contains a pretty big image (3 +/- MB) and I am inserting it to be used as a background image as a subview like this:

- (void)viewDidLoad {
    [super viewDidLoad];
    [self.view insertSubview:imageView atIndex:0];
}

The problem is when the view is pushed by the navigation controller, the transition isn’t smooth; it’s very choppy because (I assume) the image is large and loading it into the image view is expensive. I used to use

self.view.backgroundColor = [UIColor colorWithPatternImage:[UIImage imageNamed:@"foobar"]];

but because the image is so large, that code magnified the picture and it only shows a very small part of it, and very close up.

Is there a better/more efficient way to go about doing this?

  • 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-27T23:08:47+00:00Added an answer on May 27, 2026 at 11:08 pm

    What worked for me in the end was to create a UIImageView in MainWindow.xib and set it to the image, that way it doesn’t have to be loaded and unloaded every time the view changes, and gives the flow of the app some continuity. Thanks for your help!

    • 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 contains an image of a circle. I would like
I have a Background view (UIImageView) in that i am adding a view(UIView). this
Say I have a UIImageView that contains an image of an object that is
I have a subview in my app that contains a UIImageView. The user can
I have a UIImageView that starts off with an image (loading.png) specified in IB.
I have a UIImageView showing a image that is larger than it's frame. It's
I have a UIImageView that is an image of the star. The problem is
I have a UIImageView that I'd like to load with a picture coming from
If I have the original transform matrix of a rectangular UIImageView and this image
I have an UIView that contains two UIImageView (one is a cartoon, the other

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.