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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 11, 20262026-06-11T04:34:24+00:00 2026-06-11T04:34:24+00:00

Just interested, if anyone has any sample code, using the UIImagePicker for a cameraview

  • 0

Just interested, if anyone has any sample code, using the UIImagePicker for a cameraview in fullscreen with landscape/portrait rotations.

Instead of

[self presentModalViewController:imagePicker animated:NO];

I’m adding the imagepicker.view as a sub View like so:

[cameraView addSubview: imagePicker.view];

The problem is, when this happens, the frame of the imagePicker.view is being added with a 90 degrees rotation. Which would be fine to perform an affine Translation, except doing so changes the rotation of the actual Camera feed.

Doing something like, works fine,

[imagePicker.view setFrame: CGRectMake(0, 0, 480, 320)];

until the user rotates.

I can listen for the rotate notification with this:

- (void) didRotate:(NSNotification *)notification

But applying a Affine Translation, is ruining the camera overlay and it’s subviews.

  • 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-11T04:34:26+00:00Added an answer on June 11, 2026 at 4:34 am

    The outcome was that using the UIImagePicker for the modal camera popup isn’t appropriate for more than basic AVCamera usage. I still used it for picking existing photos, but ended up using the sample code

    My main VC header keeps:

    UIImagePickerController *_imagePicker;
    AVCameraView *avCameraView;
    

    AVCameraView retains:

    @property (retain) CaptureSessionManager *captureManager;
    

    Which is used to take photos as well as swap between the front/back camera if the device is a 4+
    https://github.com/mrdavenz/CaptureSessionManager

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

Sidebar

Related Questions

I have just started reading about ORMLite since I am interested in using it
Interested if anyone has used VSTS Database Edition extensively and, if so, which features
I just found Data::Section and I got interested in it. Unfortunately, I simply cannot
I'm interested in texture streaming in DirectX but google seems unhelpful. Maybe I just
I'm not interested in call or apply to change the this reference. Just for
I have never really done any serious web programming, other than just a blog
I'm not asking for someone to code this for me, I just want a
I am just getting started using Spring and am currently reading Spring in Action
I have just recently got interested in the Google Analytics plugin but found out
Just out of interest, it would be nice to know how long my calculation

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.