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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T17:00:23+00:00 2026-05-26T17:00:23+00:00

I am new to ios developing. I have using a camera option in my

  • 0

I am new to ios developing. I have using a camera option in my iPhone application. I want to added zoom in and zoom out buttons on the Camera(UIImagePickerController). But, now i want to do zoom in and zoom out [the camera object] functions while clicking the buttons. How to do this? I alloc/init the UIImagePickerController in Class A. Zoom out button in Class B.
How to access the UIImagePickerController (In class A) from Class B?
I did the following,(for Zoom out button, it is in ClassB)
1. Import Class A in Class B.
2. Called the UIImagePickerController in this way,

ClassA *objA = [[ClassA alloc]init];
objA.imagePicker.cameraViewTransform = CGAffineTransformScale(imgpicker.cameraViewTransform, CAMERA_TRANSFORM_X+50, CAMERA_TRANSFORM_Y+50);

Now, this error is occurring (“imagePicker undeclared”).
How to solve this? I know it is very simple one, but i can’t solve this. Please help me to solve the problem.. Thanks in advance. Thanks for reading my poor English and spend your valuable time with me.

  • 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-05-26T17:00:23+00:00Added an answer on May 26, 2026 at 5:00 pm

    Here’s one solution: In Class B’s interface, put the declaration:

    @class ClassA;
    

    before the interface of Class B. Then add an iVar to Class B:

    ClassA * myClassA;
    

    And include a property for it:

    @property(nonatomic, assign) ClassA * myClassA;
    

    Then, when you create Class B from Class A, add an assignment:

    ClassB * myNewClassB = [[ClassB alloc] init];
    [myNewClassB setMyClassA:self];
    

    Note that you are creating this as an assign, and that Class B will not be responsible for deallocing myClassA. It just has a pointer to it. Note that if you dealloc ClassA, though, the pointer from ClassB will no longer be valid.

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

Sidebar

Related Questions

I'm developing an iOS 4 application using latest SDK and XCode 4.2. I have
I'm new to iOS developing, I have a UITableViewController and I want to load
I am new in developing IOS apps. I have made 3 custom buttons on
I'm new to mobile dev and I'm interested in developing the application for iOS,
I am new to iOS (iphone and ipad) development. I am developing an app.
Being fairly new to objective-c and developing for ios I'm trying to figure out
I am new to IOS development (currently, I'm developing websites in ASP.NET) and I
Hi there Im new to mobile application development. I had developed Android apps using
We are new to iOS development and this is our first application for iPad
I am a real n00b in developing iOS app. This is my first application

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.