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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T22:25:14+00:00 2026-05-26T22:25:14+00:00

I am new to use UIImagePickerController in iPhone applications. I have added two UIButtons

  • 0

I am new to use UIImagePickerController in iPhone applications. I have added two UIButtons in an UIView and set that view as UIImagePickerController’s overlayview. When the user hit ZoomIn button the camera image should zoomin and when the user hit ZoomOut button the camera image should zoomout. I have tried this below code, but it is not working.

imgpicker.wantsFullScreenLayout = YES;
imgpicker.cameraViewTransform = CGAffineTransformScale(imgpicker.cameraViewTransform, CAMERA_TRANSFORM_X, CAMERA_TRANSFORM_Y);
imgpicker.view.userInteractionEnabled=YES;

CAMERA_TRANSFORM_X 1
CAMERA_TRANSFORM_Y 1.24299

imgpicker.cameraViewTransform = CGAffineTransformScale(imgpicker.cameraViewTransform, CAMERA_TRANSFORM_X, CAMERA_TRANSFORM_Y);
I have used this line in both two buttons click events. In zoomin i have used,

imgpicker.cameraViewTransform = CGAffineTransformScale(imgpicker.cameraViewTransform, CAMERA_TRANSFORM_X+1.0, CAMERA_TRANSFORM_Y+1.0);

and in Zoomout i have used,

imgpicker.cameraViewTransform = CGAffineTransformScale(imgpicker.cameraViewTransform, CAMERA_TRANSFORM_X-1.0, CAMERA_TRANSFORM_Y-1.0);

Can you please suggest the sample code or ideas to solve the problem? Please 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-05-26T22:25:15+00:00Added an answer on May 26, 2026 at 10:25 pm

    Thanks for your interest on my question.
    I found the answer for my own question. I did a blind work on this that is why i can’t get a correct expected output. I was placed ZoomIn and ZoomOut button in a UIView(OverlayView) class, so i tried to invoke UIImagePickerController from this UIView that was the problem. Now, i created UIView in locally and placed the both two buttons in this UIView. Now, i called the UIImagePickerController from locally, so it works nice what am expected.

    X = 1.00;
    Y = 1.24299;
    
    imgpicker.cameraViewTransform = CGAffineTransformScale(imgpicker.cameraViewTransform, X, Y);
    
    X = X + 1.00;
    Y = Y + 1.24299;
    

    this is for ZoomIn and change the values X = X - 1.00; Y = Y - 1.24299; for ZoomOut function. X and Y are Float datatypes.

    Thanks.

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

Sidebar

Related Questions

I have the following snippet of code that's generating the Use new keyword if
I am trying to use new spark view engine . i have done all
I m new to use ankhSVN and having issues. I have created some new
I know that I am supposed to use delete [] after I use new
Should a highly dynamic website that is constantly generating new pages use a sitemap
Here is a test description, testing the Create New Widget use-case. Confirm that you
I am new to writing use cases.I heard that Use cases are non-technical expressions
I use new Eclipse. Create demo test with jUnit (I added default jUnit library
I want to use new .Net framework 4.0 feature Configuration-Based Activation. I wrote that
I would like to use new table component added to JasperReports 3.7.2 with grails

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.