camera roll iphone not working

camera roll iphone not working

How to access the camera in my iPhone application. Please explain.

View Answers

December 12, 2011 at 1:25 PM

This code explains.., how to roll camera in your iphone SDK application. To roll the camera you'll required UIImagePickerController class.

Find the code below..

// Create image picker controller
UIImagePickerController *imagePicker = [[UIImagePickerController alloc] init];
 
// Set source to the camera
imagePicker.sourceType =  UIImagePickerControllerSourceTypeCamera;
 
// Delegate is self
imagePicker.delegate = self;
 
// Allow editing of image ?
imagePicker.allowsImageEditing = NO;
 
// Show image picker
[self presentModalViewController:imagePicker animated:YES];

- (void) imagePickerController:(UIImagePickerController *)picker didFinishPickingMediaWithInfo:(NSDictionary *)info
{
  // Access the uncropped image from info dictionary
  UIImage *image = [info objectForKey:@"UIImagePickerControllerOriginalImage"];
 
  // Save image
  UIImageWriteToSavedPhotosAlbum(image, self, @selector(image:didFinishSavingWithError:contextInfo:), nil);
 
  [picker release];
}









Related Tutorials/Questions & Answers:
camera roll iphone not working
camera roll iphone not working  How to access the camera in my iPhone application. Please explain.   This code explains.., how to roll camera in your iphone SDK application. To roll the camera you'll required
Roll Dice
Roll Dice  Create a program that rolls one dice, count the # times each number occurs on the dice when rolled. 1000 rolls, create a table of output for: # rolled, # times rolled, and % times rolled   hi friend, Please
Advertisements
The Evolution Of The Camera
The Evolution Of The Camera      ... in the history of the camera. 1850 ? By 1850, Daguerre had produced over 70 photo... all over the world. 1948 ? In 1948 the first Polaroid camera was sold
ModuleNotFoundError: No module named 'roll'
ModuleNotFoundError: No module named 'roll'  Hi, My Python program is throwing following error: ModuleNotFoundError: No module named 'roll' How to remove the ModuleNotFoundError: No module named 'roll' error
iphone
iphone  hiii, how can we use table recursively in iphone
ModuleNotFoundError: No module named 'camera'
ModuleNotFoundError: No module named 'camera'  Hi, My Python... 'camera' How to remove the ModuleNotFoundError: No module named 'camera'... to install padas library. You can install camera python with following command
iphone
iphone  hello... i want to make first iphone application . How can i make it plz help me
iphone
iphone  How can connect with the other database in iphone application(like... MYsql or oracle) is this dirctly possible
ModuleNotFoundError: No module named 'roll-for-initiative'
ModuleNotFoundError: No module named 'roll-for-initiative'  Hi, My... named 'roll-for-initiative' How to remove the ModuleNotFoundError: No module named 'roll-for-initiative' error? Thanks   Hi
ModuleNotFoundError: No module named 'backup-roll'
ModuleNotFoundError: No module named 'backup-roll'  Hi, My Python... 'backup-roll' How to remove the ModuleNotFoundError: No module named 'backup-roll' error? Thanks   Hi, In your python environment
ModuleNotFoundError: No module named 'helga-roll'
ModuleNotFoundError: No module named 'helga-roll'  Hi, My Python... 'helga-roll' How to remove the ModuleNotFoundError: No module named 'helga-roll' error? Thanks   Hi, In your python environment you
CAMERA APPLICATION J@ME
CAMERA APPLICATION J@ME  i had written the code to capture image in j2me it is running well on emulator but not running on nokia 6303 if anyone knows please help me at [email protected]
embedding cell phone camera inweb page
embedding cell phone camera inweb page  actaully I am working on visitor management project based on jsp ..in home page I want to embed my nokia N73 camera to capture image of visitor, so how do i do this? I tried object tag
ModuleNotFoundError: No module named 'pygame_camera'
ModuleNotFoundError: No module named 'pygame_camera'  Hi, My... 'pygame_camera' How to remove the ModuleNotFoundError: No module named 'pygame_camera' error? Thanks   Hi, In your python
ModuleNotFoundError: No module named 'pygame_camera'
ModuleNotFoundError: No module named 'pygame_camera'  Hi, My... 'pygame_camera' How to remove the ModuleNotFoundError: No module named 'pygame_camera' error? Thanks   Hi, In your python
ModuleNotFoundError: No module named 'scan-camera'
ModuleNotFoundError: No module named 'scan-camera'  Hi, My Python... 'scan-camera' How to remove the ModuleNotFoundError: No module named 'scan-camera' error? Thanks   Hi, In your python environment
ModuleNotFoundError: No module named 'scan-camera'
ModuleNotFoundError: No module named 'scan-camera'  Hi, My Python... 'scan-camera' How to remove the ModuleNotFoundError: No module named 'scan-camera' error? Thanks   Hi, In your python environment
ModuleNotFoundError: No module named 'shared-camera'
ModuleNotFoundError: No module named 'shared-camera'  Hi, My... 'shared-camera' How to remove the ModuleNotFoundError: No module named 'shared-camera' error? Thanks   Hi, In your python
ModuleNotFoundError: No module named 'testwizard.commands-camera'
ModuleNotFoundError: No module named 'testwizard.commands-camera'  Hi...: No module named 'testwizard.commands-camera' How to remove the ModuleNotFoundError: No module named 'testwizard.commands-camera' error? Thanks
ModuleNotFoundError: No module named 'ybc-camera'
ModuleNotFoundError: No module named 'ybc-camera'  Hi, My Python... 'ybc-camera' How to remove the ModuleNotFoundError: No module named 'ybc-camera' error? Thanks   Hi, In your python environment you
ModuleNotFoundError: No module named 'camera_calibration'
ModuleNotFoundError: No module named 'camera_calibration'  Hi, My... named 'camera_calibration' How to remove the ModuleNotFoundError: No module named 'camera_calibration' error? Thanks   Hi, In your
ModuleNotFoundError: No module named 'camera-discovery'
ModuleNotFoundError: No module named 'camera-discovery'  Hi, My... named 'camera-discovery' How to remove the ModuleNotFoundError: No module named 'camera-discovery' error? Thanks   Hi, In your
ModuleNotFoundError: No module named 'camera-fusion'
ModuleNotFoundError: No module named 'camera-fusion'  Hi, My... 'camera-fusion' How to remove the ModuleNotFoundError: No module named 'camera-fusion' error? Thanks   Hi, In your python
iPhone 3GS Programming
to tech you the latest iPhone technologies and they will help you in working... iPhone 3GS Programming iPhone 3GS is the advanced version of iPhone 3G, which Apple inc had released in 2007. With the launch
ModuleNotFoundError: No module named 'wxpython-piano-roll'
ModuleNotFoundError: No module named 'wxpython-piano-roll'  Hi, My... named 'wxpython-piano-roll' How to remove the ModuleNotFoundError: No module named 'wxpython-piano-roll' error? Thanks   Hi
iPhone
iPhone       Apple iPhone 3G is a multi-touch smartphone that has successfully combined multimedia, email, business and internet into a single platform. The iPhone
UITapgesturerecognizer not working
UITapgesturerecognizer not working  uitapgesturerecognizer not working
ModuleNotFoundError: No module named 'big-fiubrother-camera'
ModuleNotFoundError: No module named 'big-fiubrother-camera'  Hi...: No module named 'big-fiubrother-camera' How to remove the ModuleNotFoundError: No module named 'big-fiubrother-camera' error? Thanks   Hi
ModuleNotFoundError: No module named 'holmos_camera_server'
ModuleNotFoundError: No module named 'holmos_camera_server'  Hi...: No module named 'holmos_camera_server' How to remove the ModuleNotFoundError: No module named 'holmos_camera_server' error? Thanks   Hi
ModuleNotFoundError: No module named 'pi-camera-capture'
ModuleNotFoundError: No module named 'pi-camera-capture'  Hi, My... named 'pi-camera-capture' How to remove the ModuleNotFoundError: No module named 'pi-camera-capture' error? Thanks   Hi, In your
ModuleNotFoundError: No module named 'pi-camera-capture'
ModuleNotFoundError: No module named 'pi-camera-capture'  Hi, My... named 'pi-camera-capture' How to remove the ModuleNotFoundError: No module named 'pi-camera-capture' error? Thanks   Hi, In your
ModuleNotFoundError: No module named 'zorg-network-camera'
ModuleNotFoundError: No module named 'zorg-network-camera'  Hi, My... named 'zorg-network-camera' How to remove the ModuleNotFoundError: No module named 'zorg-network-camera' error? Thanks   Hi
ModuleNotFoundError: No module named 'big-fiubrother-camera'
ModuleNotFoundError: No module named 'big-fiubrother-camera'  Hi...: No module named 'big-fiubrother-camera' How to remove the ModuleNotFoundError: No module named 'big-fiubrother-camera' error? Thanks   Hi
ModuleNotFoundError: No module named 'django-camera-imagefield'
ModuleNotFoundError: No module named 'django-camera-imagefield'  Hi...: No module named 'django-camera-imagefield' How to remove the ModuleNotFoundError: No module named 'django-camera-imagefield' error? Thanks  
ModuleNotFoundError: No module named 'holmos_camera_server'
ModuleNotFoundError: No module named 'holmos_camera_server'  Hi...: No module named 'holmos_camera_server' How to remove the ModuleNotFoundError: No module named 'holmos_camera_server' error? Thanks   Hi
What is iPhone SDK?
What is iPhone SDK?       What is iPhone SDK? The iPhone SDK or iPhone software... and build the software for the iPhone. The iPhone SDK includes the API and components
iPhone Development Training in Delhi
Learn important API of iPhone and iPad Develop application that uses Camera...iPhone Development Training in Delhi We are providing iPhone Development... with the latest Mac and iPhone/iPad. We provide classroom iPhone and iPad development
Lytro Light Field Camera, a Breakthrough Camera with Unmatched Editing Possibilities
Lytro Light Field Camera, a Breakthrough Camera with Unmatched Editing... it perfection? Well, that is what this amazing camera is capable of. The never before light field technology in this camera will allow immense creative
how to take iphone backup using itunes
Back Up iOS device backups preserve your settings, the Camera Roll (or Saved...how to take iphone backup using itunes  Hi, Can anyone please tell me how to take iphone backup using itunes..?   You can find the details
iPhone Graphics
iPhone Graphics  Hi, How to create iPhone Graphics? I am learning to crate UI Design for iPhone and iPad. Thanks
iphone avfoundation
iphone avfoundation  What is iphone avfoundation and why it is required? Can anyone show how to implement the AVFoundation in iPhone application with example or tutorial? Thanks
htpasswd working
htpasswd working   hii, What does htpasswd do?   hello,ADS_TO_REPLACE_1 htpasswd creates a new user in a specified group, and asks to specify a password for that user
ModuleNotFoundError: No module named 'pcap-generic-piano-roll-drum-machine-graphics'
ModuleNotFoundError: No module named 'pcap-generic-piano-roll-drum-machine...: ModuleNotFoundError: No module named 'pcap-generic-piano-roll-drum-machine-graphics...-piano-roll-drum-machine-graphics' error? Thanks   Hi
Iphone call
Iphone call  Do you have other method to make a call on Iphone,without openUrl
hibernate.archive.autodetection not working
hibernate.archive.autodetection not working  Hi, What is the use of hibernate.archive.autodetection? I am trying to use in my project but its not working. How to resolve hibernate.archive.autodetection not working issue
Datagrid not working
Datagrid not working  The code here is working fine, apart from the fact that that I'm using netbeans 6.5 and the servlet v2.5 and struts 1.1.... working. please help me out
Iphone Tutorial
Iphone Tutorial  Hi, I am a new in this mobile applications segment. From where i will get the information about iphone tutorial or Iphone Development Tutorials. Please suggest the resouces......... Thanks
Hire iPhone developer
knowledge of technology, working experience etc. ADS_TO_REPLACE_2 Hire iPhone...Hire iPhone developer - Hire iPhone developers in India Apple?s iPhone is superior to all smart phones but developing applications for iPhone is not an easy
Offshore iPhone Development
Offshore iPhone Development With the evolution of Apple's iPhone (internet... marketing owner of iPhone - has first time introduced unique integrated features in its smart multimedia mobile phone comprising cellphone, iPod, camera
Offshore iPhone Apps Development
and currently we are working on dozens of project for iPhone apps. In the last few...Offshore iPhone Apps Development Since the origination of Apple's internet mobile phone ' iPhone ' has dominated the smart phone market

Ads