IOS take photo with image picker

Posted on Dec 08, 2013 4:08 AM, Ios - Stack Overflow | stackoverflow.com

I have seen many questions here about taking photo with this api

but I run into specific problem

with following code

.h file

   @interface ComposeMViewController : UIViewController <UITextFieldDelegate , UITableViewDelegate ,UITableViewDataSource, UIImagePickerControllerDelegate , UINavigationControllerDelegate , MFMailComposeViewControllerDelegate , MFMessageComposeViewControllerDelegate , DistributionListViewControllerDelegate,UITextViewDelegate>

in .m

    UIImagePickerController * CameraPicker = [[UIImagePickerController alloc] init];
    CameraPicker.delegate = self;

    [CameraPicker setSourceType:UIImagePickerControllerSourceTypeCamera];
    [self presentViewController:CameraPicker animated:YES completion: nil];

I getting an exception that unrecognised selector sent in to instance 0X something and it refers to the CameraPicker source type

I have also tried to do :

CameraPicker.SourceType = UIImagePickerControllerSourceTypeCamera; 

but here I getting compiler error that it isn't allowed with ARC

could some 1 please point me ? Thanks :)

Tagged photos

Similar Messages
  1. HTML iPhone "Take photo or video" reduce image size
  2. IOS take photo with image picker Memory Leak
  3. How take photo from device through ios app
  4. Anyway to get iOS image picker from PHP page?
  5. Ios 7 image picker inside popover wrong behavior
  6. Uploading image picker photo ios
  7. IOS 8 new API. Use iOS's Photo.app to edit photo from my app and get the modified image
  8. IOS 8 SDK: modal UIWebView and camera/image picker
  9. Image picker in selfie mode
  10. Camera Image Picker controls - Auto Rotation in iOS7
  11. How to set image picker image chosen for button in iOS
  12. Take photo Using the storyboard or Xib in Xcode
  13. IOS: Take photo or select from library
  14. Custom Image Picker for iOS
  15. Landscape orientation image picker.
  16. IOS image picker library not displaying image preview
  17. IOS how to start the image picker
  18. Swift : take photo from AVFondation
  19. Share photo/image on linkedin using android app without using share intent

HTML iPhone "Take photo or video" reduce image size

Posted on Nov 30, 2013 8:08 AM,

If I have a simple HTML file input: <input type="file"> and it's clicked and I choose "Take photo or video" then the image that will be uploaded is HUGE, round 5MB, this is far too much of an upload, how can I tell the phone to upload a smaller version of the image?? Thank you!!...

Read RepliesRead Related

IOS take photo with image picker Memory Leak

Posted on Dec 08, 2013 4:08 AM,

I have seen many questions here about taking photo with this api but I run into specific problem with following code .h file @interface ComposeMViewController : UIViewController <UITextFieldDelegate , UITableViewDelegate ,UITableViewDataSource, UIImagePickerC...

Read RepliesRead Related

How take photo from device through ios app

Posted on Dec 10, 2013 12:42 PM,

When i take photo from iOS app through device i want to display 3 photos like minimum zoom(2),middle zoom(4),maximum zoom(6). Ex:I want to take photo from app.After picking photo display three photos with different zooms....

Read RepliesRead Related

Anyway to get iOS image picker from PHP page?

Posted on Jan 18, 2014 6:38 AM,

Is there anyway to get the image picker native to iOS to spawn and upload strictly from a PHP page or is this only available via API in app? I would like to upload multiple images at the same time from an iPhone to a website using the same kind of image picker that Facebook or sharing photos uses ...

Read RepliesRead Related

Ios 7 image picker inside popover wrong behavior

Posted on Sep 26, 2013 5:57 AM,

My image picker view controller setted inside popover controller. On iOS 6 everything works great, but on iOS 7 the image is rotated and all movings are doing verse: when turning iPad left image is going down, when moving up image going left, etc. Here is the code for showing my camera: ...

Read RepliesRead Related

Uploading image picker photo ios

Posted on Apr 22, 2014 7:32 AM,

I have the image picker which retrieves an image from the inbuilt camera: - (void)imagePickerController:(UIImagePickerController *)picker didFinishPickingMediaWithInfo:(NSDictionary *)info { [info objectForKey:UIImagePickerControllerEditedImage]; UIImage *chosenImage = info[UIImage...

Read RepliesRead Related

IOS 8 new API. Use iOS's Photo.app to edit photo from my app and get the modified image

Posted on Jun 18, 2014 5:54 AM,

My leader let me research about the new iOS 8 API. To implement a feature which would allow me to use iOS's Photo.app's edit feature in order to edit photo from my app. And get back the modified image. I can not found such feature after search. Leader said the WWDC movie shows such feature. ...

Read RepliesRead Related

IOS 8 SDK: modal UIWebView and camera/image picker

Posted on Sep 19, 2014 9:34 AM,

I have found that, when compiling for iOS 8 (and running in iOS 8), a UIWebView cannot show the camera/image picker if the UIWebView is in a view controller presented modally. It works without problem in view controllers directly “hanging” from the window rootVie...

Read RepliesRead Related

Image picker in selfie mode

Posted on Nov 30, 2013 4:48 AM,

I'm trying to find a way to open the image picker view direcly in "selfie" mode. (To take have the camera showing the user's face) Does someone has a trick to do that ?...

Read RepliesRead Related

Camera Image Picker controls - Auto Rotation in iOS7

Posted on Sep 16, 2013 4:36 AM,

I have a photo app that overlays custom button on camera image picker (for taking picture, turning on/off the flash, other usual stuff etc.) I want the control interface to support portrait orientation only (I am talking about the control button/interface only, and not the actual captured image), w...

Read RepliesRead Related

How to set image picker image chosen for button in iOS

Posted on Jan 04, 2014 4:49 AM,

I am trying to set a UIButton image with the image chosen from an image picker. My code looks like this: - (void)imagePickerController:(UIImagePickerController *)picker didFinishPickingMediaWithInfo:(NSDictionary *)info{ [picker...

Read RepliesRead Related

Take photo Using the storyboard or Xib in Xcode

Posted on Jan 29, 2014 4:27 AM,

I want to take a photo with Stroyboard (because I don't have iPhone ) know I have code Take photo and the select and then What's the easiest way to resize/optimize an image size with the in iPhone .H #import <UIKit/UIKit.h> @interface APPViewControl...

Read RepliesRead Related

IOS: Take photo or select from library

Posted on Aug 08, 2012 8:14 AM,

I want to get an image from the user as shown here. This looks like a lot of work: see if device has camera create action sheet with appropriate options translate "Take Photo" an...

Read RepliesRead Related

Custom Image Picker for iOS

Posted on Mar 26, 2014 4:04 AM,

I have my own collectionView in my app. I don't want to use the default UIImagePicker for my app & I want to implement Image Picker with my collection View. Can anyone tell me how to implement custom selecting Album View and after select the Album, How to implement custom View to view all...

Read RepliesRead Related

Landscape orientation image picker.

Posted on Apr 12, 2014 4:29 AM,

I'm creating an app that is landscape only, it uses an image picker control. Looking through the site I've discovered that apple only allow portrait for this for some reason. I'm okay with it flipping to portrait for this one section, if it means the user can select a photo from the library. Below ...

Read RepliesRead Related

IOS image picker library not displaying image preview

Posted on Apr 30, 2014 10:24 AM,

We have been struggling with this bug for a while. It is really weird (as has been working fine in other projects). For some reason the image picker does not display the thumbnails, although the images are selectable a blank thumbnail is displayed. Things we have already try without success: ...

Read RepliesRead Related

IOS how to start the image picker

Posted on Jun 07, 2014 3:45 AM,

I have a button and when the user clicks it, I want to start the image picker controller I already configure what I think it is enough but I couldn't know what is the message that I have to pass to that image picker to start working This is my code #import "ImagePickerViewCo...

Read RepliesRead Related

Swift : take photo from AVFondation

Posted on Sep 16, 2014 2:30 AM,

I want to translate this func from obj c to swift, buti can't translate a part of the code. Could someone explain me how to take photo from AVFondation or help me to translate this function ? - (void) capImage { //method to capture image from AVCaptureSession video feed AVCaptureC...

Read RepliesRead Related

Share photo/image on linkedin using android app without using share intent

Posted on Nov 18, 2013 10:16 AM,

I want to share photo/image on linked in without using share intent from android. I did lot of googling but didn't find good resource for this. I found one linkedinj library but not able to do it correctly. If anyone has any idea please kindly guide me....

Read RepliesRead Related
 
 
Email:

Username:

Password:


Register

Username:

Password:

Login