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

  • Home
  • SEARCH
  • 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 7981525
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 4, 20262026-06-04T10:24:07+00:00 2026-06-04T10:24:07+00:00

I am working in phonegap Camera API new to objective c i dont know

  • 0

I am working in phonegap Camera API new to objective c i dont know how to declare method and interface for this function in .h file

if([(NSString *) [components objectAtIndex:1] isEqualToString:@"Take_Photo"])    
  {
            UIImagePickerController *picker = [[UIImagePickerController alloc] init];
            picker.delegate = self; 
            picker.allowsImageEditing = YES; 
            picker.sourceType = UIImagePickerControllerSourceTypePhotoLibrary;
            [self presentModalViewController:picker animated:YES];
    }

I’ve declared UIImagePickerControllerDelegate in .h file but the camera is not opening.
i did not get any error when i debugging the application paused after completed the line

[self presentModalViewController:picker animated:YES];

the application debugger paused in the binary file. i think i missed something in .h file.

 @interface NativeAPI :UIViewController        
  <UIWebViewDelegate,UIImagePickerControllerDelegate,UINavigationControllerDelegate>
   {

        Reachability* internetReachable;
        Reachability* hostReachable; 
         UIImagePickerController* Image_Picker;
    }

any one help me thanks in advance

  • 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-06-04T10:24:08+00:00Added an answer on June 4, 2026 at 10:24 am

    You will be required to assign the value of the picker to the instance variable like this.

    UIImagePickerController *picker = [[UIImagePickerController alloc] init];
    self.Image_picker = picker;
    [picker release];
    Image_picker.delegate = self; 
    Image_picker.allowsImageEditing = YES; 
    Image_picker.sourceType = UIImagePickerControllerSourceTypePhotoLibrary;
    [self presentModalViewController:picker animated:YES];
    

    Try the code above

    You can define a method under the implementation which is to be called by the delegate.

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

Sidebar

Related Questions

My problem is really weird. I'm working in phonegap. I got a function called
In my PhoneGap/jQuery Mobile app, I'm currently using PhoneGaps' Camera API to allow the
So, I am working on this phonegap-based app. Most of our code is checked
I'm working on a PhoneGap app and I have this piece of code in
I have Phonegap's Facebook plugin working perfectly within my Android app. This plugin uses
I am working on phonegap with android. i want to download a file from
I am very new to phonegap development and I'm working on a phonegap-based program.
What is 'this' in phonegap? I am working on an app where I have
I've been working with PhoneGap and it's been great, but I've run into a
I am working on PhoneGap for android and it use cordova-1.5.0.jar, I want to

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.