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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 15, 20262026-05-15T19:15:36+00:00 2026-05-15T19:15:36+00:00

When using the iPhone 4, I’m having memory issues when using the rear-facing camera.

  • 0

When using the iPhone 4, I’m having memory issues when using the rear-facing camera. It’s causing memory errors and won’t assign the picture to a UIView. Here’s the code.

-(IBAction)getCameraPicture:(id)sender {
UIImagePickerController *picker = [[UIImagePickerController alloc] init];
picker.delegate = self;
picker.allowsEditing = NO;

if(sender == takePictureButton)
    picker.sourceType = UIImagePickerControllerSourceTypeCamera;
else
    picker.sourceType = UIImagePickerControllerSourceTypeSavedPhotosAlbum;

[self presentModalViewController:picker animated:YES];
[picker release];

}

- (void)imagePickerController:(UIImagePickerController *)picker 
didFinishPickingMediaWithInfo:(NSDictionary *)info
{

    imageView.image = [info objectForKey:UIImagePickerControllerOriginalImage];
    [picker dismissModalViewControllerAnimated:YES];
}

It works fine when using the front-facing (lower quality) camera, as does loading existing pictures not taken at full quality. Is there any way to reduce the quality of the photo taken with the rear camera, or some other way to get around this issue?

  • 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-15T19:15:37+00:00Added an answer on May 15, 2026 at 7:15 pm

    This is a common problem, the images from the cameras on the iPhone are huge! Usually much bigger than you need. Best practice is to resize the image to be no bigger than you need. I use MGImageUtilities and it works great.

    If you need the full-sized image for any reason, cache it to disk before you resize it.

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

Sidebar

Related Questions

I am a novice using iPhone SDK and Objective C. I am facing a
Having follow the tutorial at http://mithin.in/2009/06/22/using-iphone-sdk-mapkit-framework-a-tutorial/ to integrate the MapKit into my application. However,
I am using the iPhone camera to capture an image and them resizing and
Using the iPhone SDK, I'm having the user select images from the image picker.
Is there a way to take a photo using iPhone camera without pushing the
How to use face detection for the face image using iPhone camera ? I
I am using iPhone 2.0 SDK. I used the API UIImageWriteToSavedPhotosAlbum to save an
On the iPhone: Using the US locale, a currency looks like this: $1,234.56 Using
I am using cocos2d-iphone to place Sprites onto a Layer to setup a game
I am using my iPhone application on my iPhone 3G OS 3.0.1 without any

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.