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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 14, 20262026-06-14T07:44:50+00:00 2026-06-14T07:44:50+00:00

I am trying to take a picture from my iPad app, using code I

  • 0

I am trying to take a picture from my iPad app, using code I have found on the internet. I have this method:

- (BOOL) startCameraControllerFromViewController: (UIViewController*) controller
                                   usingDelegate: (id <UIImagePickerControllerDelegate,
                                                   UINavigationControllerDelegate>) delegate {

in a file called CameraViewController.m.

In CameraViewController.h, I have this definition:

@interface CameraViewController : UIViewController

+ (BOOL) startCameraControllerFromViewController: (UIViewController*) controller
                                   usingDelegate: (id <UIImagePickerControllerDelegate,
                                   UINavigationControllerDelegate>) delegate;

@end

I am trying to call it from this method which is in ClientSetupViewController.m:

    - (void) captureImage  {

        [startCameraControllerFromViewController: self usingDelegate: self];
}

I’m getting an error saying

Use of undeclared identifier startCameraControllerFromViewController

I have #import “CameraViewController.h” in CLientViewController.h

I’m totall lost! I thought I had everything defined correctly, but I guess not. What is wrong with my code?

UPDATE: getting this error now after changing code to call instance:

Undefined symbols for architecture armv7:
“_OBJC_CLASS_$_CameraViewController”, referenced from:
objc-class-ref in ClientSetupViewController.o
anon in CameraViewController.o
l_OBJC_$_CATEGORY_CameraViewController_$_CameraDelegateMethods in CameraViewController.o ld: symbol(s) not found for architecture
armv7 clang: error: linker command failed with exit code 1 (use -v to
see invocation)

  • 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-14T07:44:51+00:00Added an answer on June 14, 2026 at 7:44 am

    If startCameraControllerFromViewController:usingDelegate: is indeed a class function (as indicated by the +), then the way to call the function would be:

    [CameraViewController startCameraControllerFromViewController: self usingDelegate: self]

    A message is sent to an object, or a class. In your code, you have just the message name in the message call [ ], with no indication of where this message should be sent to.

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

Sidebar

Related Questions

I'm trying to take a picture from the Camera using intent with onActivityResult but
I'm trying to tweet an image from an iOS5 app with code like this:
I trying to put together an Android app that will take a picture and
I am trying to take a picture from a camera and overlay the image
I am trying to capture a picture from a video on my iPad. I
Please take a look at this fiddle jsfiddle.net/Qstuw/2/ As you see from picture first
i'm trying to take an image from assets (assets not drawable to have subfolders
I am trying to create an app, which can take photos from camera and
I am trying to take a picture using an intent. My problem is that
I'm trying to use a standard Intent that will take a picture, then allow

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.