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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T09:11:01+00:00 2026-05-26T09:11:01+00:00

I’m trying to add a UIImageView programmatically using this code, as I always do:

  • 0

I’m trying to add a UIImageView programmatically using this code, as I always do:

UIImageView *theImageView = [[UIImageView alloc] initWithImage:[UIImage imageNamed:@“theImage"]];
[theImageView setFrame:CGRectMake(0.0f, 0.0f, 320.0f, 225.0f)];

I’ve added “theImage.png” and “theImage@2x.png” as I always do, but the simulator and my iPhone4 are not able to show the @2x image file. They always show the standard one. Image files are OK (not corrupted) and they’re on the bundle root.
I’m running Xcode 4.2 and iOS5 SDK.

Any ideas?

  • 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-26T09:11:02+00:00Added an answer on May 26, 2026 at 9:11 am

    Strange and Odd thing. Reinstalled Xcode and now it works. Maybe the compiler was corrupted.

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

Sidebar

Related Questions

I'm trying add a tab to my web page that looks like this: Using
UIImageView *navBarImageView = [[UIImageView alloc] initWithImage:navBarImage]; [navBarImageView setFrame:CGRectMake(0, 0, 320, 44)]; self.navigationItem.titleView = navBarImageView;
I am a noob at OBJ-C :) I am trying to add a UIImageView
I'm trying to add multiple instances of UIImageView(s) to an NSMutableArray of NSMutableDictionar(ies). I
So I'm trying to add UIImageViews programatically (in this case I don't have the
I am trying to save a rotated and scaled UIImageView as an UIImage in
I am trying add on dimension of an array together into a variable using
Im trying to add an animation of a monkey using a NSMutablAarray of UIImageViews.
I am trying to add various UIImages under UIImageView and allow them to scroll
I'm trying to subclass UIImageView to add some custom functionality in it. I started

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.