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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 21, 20262026-05-21T14:13:55+00:00 2026-05-21T14:13:55+00:00

The older 3GS, or iPod 4 are able to show the final tempimage, but

  • 0

The older 3GS, or iPod 4 are able to show the final tempimage, but on the iPhone 4, I don’t see the tempview showing up on screen.

I stepped through it, getting imageData, tempimage allocated, tempview allocated, but the final tempview is not showing up.

-(void) display:(NSData*) imageData
{
    tempimage= [[[UIImage alloc] initWithData:imageData] autorelease];
    tempview=[[[UIImageView alloc] initWithFrame:CGRectMake(0, 0, 320, 480)] autorelease];

    if (tempimage) {
        [tempview setImage:tempimage];

        [self.view addSubview:tempview];
}
  • 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-21T14:13:56+00:00Added an answer on May 21, 2026 at 2:13 pm

    try like this..

    -(void) display:(NSData*) imageData
    {
    if(imageData != nil)
    {
       tempimage= [[UIImage alloc] initWithData:imageData];
    }
    else
    {
       tempimage= [UIImage imageNamed:@"something.png"];
    }
    
    tempview=[[UIImageView alloc] initWithFrame:CGRectMake(0, 0, 320, 480)];
    
    if (tempimage) {
        [tempview setImage:tempimage];
    
        [self.view addSubview:tempview];
    }
    if(imageData != nil)
    {
      [tempimage release];
    }
    [tempview release];
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I've got an older iPhone 3Gs, and I've just joined the Apple developer program.
I have the Default.png for iPhone 3GS and older models. I was just wondering
Does anyone know a way to detect the older set of devices: iPod touch
In older versions of DataTables (up to 1.7.?), I used to be able to
i found example for older version, but my current version has not assets/libs/docmanager/document.class.inc.php file
Older versions of GCC (for example 4.0.2 or 4.1.2) had the option -df (see
Older versions of Internet Explorer are being phased out, but they will stick around.
The older mysql extension has the CLIENT_FOUND_ROWS connection flag, but I couldn't find any
i cam across some older topics about this but since there is a lot
In older versions of the kernel (2.6.25.8), it was in drivers/scsi/scsi_error.c in the functions

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.