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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 14, 20262026-06-14T04:39:08+00:00 2026-06-14T04:39:08+00:00

Please help. No one seems to have a successful working answer to the following:

  • 0

Please help.

No one seems to have a successful working answer to the following:

I get an image from the iPhone camera using UIImagePickerController. When taking the image there is an overlay present. The overlay is simply a subclassed UIImageView with various gestures attached.

When I take the image, how do I add the overlay to the image in precisely where it is on the device screen?

Any help much appreciated,

LB

  • 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-14T04:39:09+00:00Added an answer on June 14, 2026 at 4:39 am

    I’m writing this away from xcode, so it may need tweaks…

    Create a UIView class with UIImage properties, picture & overlay, & call it something like compositorView. From the didFinishPickingMediaWithInfo: method in your UIImagePickerController delegate, set the picture property of compositorView to the photo you’ve just taken, & the overlay property to whatever image you’re using. Then ask compositorView for its composedImage, & that should be it…

    (You’ll need the QuartzCore framework)

    @synthesize picture = _picture;
    @synthesize overlay = _overlay;
    
    
    -(void)drawRect:(CGRect)rect
    {
    
        CGFloat width = self.frame.size.width;
        CGFloat height = self.frame.size.height;
        CGRect frame = CGRectMake(0, 0, width, height);
    
        [_picture drawInRect:frame];
        [_overlay drawInRect:frame];
    
    }
    
    
    -(UIImage *)composedImage
    {
        CGSize pageSize = self.frame.size;
    
        UIGraphicsBeginImageContextWithOptions(pageSize, NO, 2.0);
    
        CGContextRef context = UIGraphicsGetCurrentContext();
    
    
        [self.layer renderInContext:context];
    
        UIImage *theImage = UIGraphicsGetImageFromCurrentImageContext();
    
    
        UIGraphicsEndImageContext();
    
    
        return theImage;
    
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Please help. I'm losing sleep over this one! :) I have a list of
I have one intresting requirement to achieve. could you please help? Please find the
Need some help, please. I have a line of horizontal thumbnails loaded as ONE
I have a problem with understanding the following events, please help. I have an
I'm using the Facebook Registration Plugin and it seems to have stopped working, but
Please help me understand if the following choices I have made are idiomatic/good and
Can any one please help me how to go to another activity in android
Can any one please help me solve this. I am resizing some flash object/embed
Hey friends any one please help me for this issue.in this javascript code i
Any one please help me to build a horizontal bar graph in my android

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.