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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 2, 20262026-06-02T17:21:14+00:00 2026-06-02T17:21:14+00:00

I have an UIImageView with an UIButton that that I want to be able

  • 0

I have an UIImageView with an UIButton that that I want to be able to send as an image with email, but the UIButton in the UIImageView wont be “stickied” with the UIImageView’s image when I take the image out from the UIImageView.

Any suggestions?

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-06-02T17:21:15+00:00Added an answer on June 2, 2026 at 5:21 pm

    You can add UIButton and UIImageView and get the required screenshot image using the following code.
    You might need to add the QuartzCore.framework to your project and #import

    To get the image with other UI elements.

    UIGraphicsBeginImageContext(CGSizeMake(320, 480)); // Here provide width and height of UIImageView
    [self.view.layer renderInContext:UIGraphicsGetCurrentContext()];//Here use required view 
    UIImage *outputImage = UIGraphicsGetImageFromCurrentImageContext();//outputImage is your required image
    UIGraphicsEndImageContext();
    

    To display the image

    UIImageView * screenShotView = [[UIImageView alloc] initWithImage:outputImage];
    [screenShotView setFrame:CGRectMake(0, 0, 320, 480)];
    [self.view addSubview:screenShotView];
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have an UIImageView on my view. Certain parts of that image, I want
I have a UIImageView showing a image that is larger than it's frame. It's
I have a UIImageView that starts off with an image (loading.png) specified in IB.
I have one UIImageView with a UIButton partially overlapping it. I want the user
I have one UIButton . I put one image on that. When I click
I'm trying to figure out how i can have an image with click-able content.
I have a UIButton that is added to a UIImageView (it's a big chart)
I want to create a method that will accept a UIButton, UIImageView, or any
I have a UIButton that has a UIImageView inside of it. For some reason
I have a UIImageView object that when clicked it will play a animation, I

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.