Latest Tutorials| Questions and Answers|Ask Questions?|Site Map



Home Answers Viewqa Mobile-Applications camera roll iphone not working

Have Programming Question? Ask it here!
 
 
 


Java Coder
camera roll iphone not working
1 Answer(s)      2 years and 8 months ago
Posted in : MobileApplications


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


Advertisement
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
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 maheshwari1986ashish@gmail.com
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
iphone
iphone  hiii, how can we use table recursively in iphone
iphone
iphone  How can connect with the other database in iphone application(like... MYsql or oracle) is this dirctly possible
iphone
iphone  hello... i want to make first iphone application . How can i make it plz help me
iPhone 3GS Programming
the latest iPhone technologies and they will help you in working under.... They have developed several small apps for iPhone and currently working... iPhone 3GS Programming iPhone 3GS is the advanced version
UITapgesturerecognizer not working
UITapgesturerecognizer not working  uitapgesturerecognizer not working
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
htpasswd working
htpasswd working   hii, What does htpasswd do?   hello, htpasswd creates a new user in a specified group, and asks to specify a password for that user
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
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
Why this is not working...?
Why this is not working...?  import java.util.*; public class Family { int size_of_family=0; public Person[] members=new Person[size_of_family]; Person d = new Person(); public Family (int size_of_family){ members = new
iPhone Development Training in Delhi
API of iPhone and iPad Develop application that uses Camera, Accelerometer...iPhone Development Training in Delhi We are providing iPhone Development... with the latest Mac and iPhone/iPad. We provide classroom iPhone and iPad development
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 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
iPhone Graphics
iPhone Graphics  Hi, How to create iPhone Graphics? I am learning to crate UI Design for iPhone and iPad. Thanks
Iphone call
Iphone call  Do you have other method to make a call on Iphone,without openUrl
Comparing arrays not working correctly?
Comparing arrays not working correctly?  Comparing arrays not working correctly
Update not working in hibernate.
Update not working in hibernate.  Update not working in hibernate
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
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
iPhone's Missing Features
not discuss the iPhone's camera image quality but just its location. Why... iPhone's Missing Features       iPhone is a great phone with amazing features
iPhone Programming Training Course
iPhone Programming Training Course Our iPhone Programming Training Course is ideal for beginners having knowledge of C and C++. After completing the iPhone... in iPhone and iPad application development. You will learn how to develop
Hire iPhone developer
of technology, working experience etc. Hire iPhone developer India from Roseindia...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
Focus method not working in firefox
Focus method not working in firefox  object.focus() is not working in firefox and chrome the element is not focused what was the problem
html dropdown not working firefox
html dropdown not working firefox  I am writing a Dropdown code in HTML which is not working in firefox. What could be the reason as it's perfectly working in IE and Crome. Thanks
calender working in struts - Struts
calender working in struts  when i execute the following code ,that is working properly if i convert to struts html tags that code is not working please help me to rectify the problem
Outsourcing iPhone development
Outsourcing iPhone Development Apple Inc., which is the habitual... the world by launching third generation Internet phone – iPhone. After its emergence, iPhone has included several new and unique features in its kitty
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
NSZombieEnabled iPhone
NSZombieEnabled iPhone  NSZombieEnabled Trouble in setting How can i set the NSZombieEnabled in iPhone application to track unmanaged memory
file_exists php not working
file_exists php not working  file_exists php not working. Please give me the simple example
iPhone resignfirstresponder
iPhone resignfirstresponder  Hi, Provide me a good example of iPhone resignfirstresponder. I need a code to hide keyboard when use clicks outside the text box. Thanks   Hi, You can use the following code
iPhone and iPad universal app
iPhone and iPad universal app  I am writing a universal application in iPhone and iPad that is not working in iPhone simulator. Though i have tested it in the iPad successfully. On running the application in the device it returns
iPhone Native application
on the iPhone. The native iPhone developers need hardware like camera...iPhone Native application Apple iPhone brings revolution in the world of mobile phones. iPhone has set a platform to develop innovative mobile
iPhone PDF UIWebview
iPhone PDF UIWebview  In my iPhone application i am trying to load the pdf file on UIWebview.. but some how it's not working. Please suggest. Code that i used is as follow... NSString* filePath = [[NSBundle mainBundle
Dynamic-update not working in Hibernate.
Dynamic-update not working in Hibernate.  Why is dynamic update not working in hibernate?   Dynamic-update is not working. It means when you are running your update, new data is added in your table in place
Working of POS Terminal
Working of POS Terminal  Hi there, thanks for this post. Just curious how actual POS terminal will interact with PHP. PHP doesn't provide hardware interaction. Thanks for reply. Regards
UIWebView zoom not working
UIWebView zoom not working  Hi, I don't know why UIWebView zoom not working? Tell the solution. Thanks   Hi, Open the .xib file and set scalesPageToFit to YES. Thanks
StandardServiceRegistryBuilder not working in Hibernate 4.3.1
StandardServiceRegistryBuilder not working in Hibernate 4.3.1  Hi, It seems that the StandardServiceRegistryBuilder not working in Hibernate 4.3.1.... working with the Hibernate 4.3.1 and it is giving following error message: Access
Iphone Developmnt
Iphone Developmnt  i am making an application in ios, for ipad or iphone, what i want to know is that can i provide an option of changing the theme , or can i separate my code from the theme... so that when giving my product
background images in css not working
background images in css not working  In the application i'm passing a background image from CSS in the given format ... background-image: url("Image\backgroundImage.GIF"); which is not working. So, please give me an example
calculate working hour
calculate working hour  why echo not come out? <html><body> <form action="<?php $_SERVER['PHP_SELF'];?>" method="post"> Working hour : <input name="workout" type="text"/><input name="submit1
php <? ?> tag not working
php tag not working  why PHP tags not working in my application?   This might happen when your shortopentag is turned off. So, you will have to turn it on by changing the status of this PHP tag in php.ini file. Here
Working with Eclipse IDE - Struts
Working with Eclipse IDE  hello, i am beginner to eclipse . i want to run my first struts program in eclipse 3.2. what are the steps for running struts in eclipse . Any body plz, tell me the setting environment of eclipse
iphone nsurlrequest authentication
iphone nsurlrequest authentication   How to authenticate a form in iPhone Application
command prompt is compilation is not working
command prompt is compilation is not working   Dear java users can anyone help me to run the program in command line prompt i tried by selecting the environment variable and class path and path in my system my program
window.open() not working - Ajax
is that the pop up window is not at all working.. Once I click the button, the page
 

 

 

DMCA.com