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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 14, 20262026-06-14T09:28:53+00:00 2026-06-14T09:28:53+00:00

I am adding UIImage dynamically and moving it on UIView and I have 4

  • 0

I am adding UIImage dynamically and moving it on UIView and I have 4 buttons in bottom as well.
What I want is to save UIView as image but I dont want buttons to save while saving that UIView and I want UIImageView to be added behind Buttons.

screenshot code

UIGraphicsBeginImageContext(self.view.frame.size);
    [self.view.layer renderInContext:UIGraphicsGetCurrentContext()];
    UIImage *viewImage = UIGraphicsGetImageFromCurrentImageContext();
    UIGraphicsEndImageContext();
    UIImageWriteToSavedPhotosAlbum(viewImage, nil, nil, nil);

Adding UIImageView

UIImage* image = [UIImage imageNamed:[NSString stringWithFormat:@"lam.jpg"]];


    CGRect cellRectangle;
    cellRectangle = CGRectMake(20 ,50,image.size.width/6 ,image.size.height/6 );

    //[[self view] addSubview:blockView];
    UIImageView *dragger = [[Draggable alloc] initWithFrame:cellRectangle];
    [dragger setImage:image];
    [dragger setUserInteractionEnabled:YES];

    [self.view addSubview:dragger];

I have saved UIView as image like this but I dont want buttons to be saved. I have also used another UIView but I want whole screen to drag images thats my restriction. I hope that everyone got what I want.
The screenshot

  • 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-14T09:28:54+00:00Added an answer on June 14, 2026 at 9:28 am

    I don’t quite get it. But as I understand you want a screenshot of the view with the cars, but without the buttons. Easiest solution would be to put a fullscreen view on your mainView. On that fullscreenView you put your car images. The buttons are also directly on the mainView. Than in your screenshot method you just use the fullscreenView instead of self.view.

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

Sidebar

Related Questions

I have an UIImage which I want to draw on a UIView . But
Adding Exceptional Handling is a good practise, but I have a doubt, In our
Adding an image to a UINavigationItem's titleView is pretty trivial, but when I push
I have a UIButton, and I'm adding an image to it using this code:
[self.scrollView addSubview:[self.minkyImageView initWithImage:[UIImage imageNamed:@monkey_1.png]]]; I am adding an image to a scrollview like the
- (UIImage *)roundedCornerImage:(NSInteger)cornerSize borderSize:(NSInteger)borderSize { // If the image does not have an alpha
Sir, Here i need to add geolocation from metadata to uiimage but after adding
I have a UIButton that I'm adding dynamically using content parsed from an XML
After adding a background (image) to my UIView (View_0) I wish to implement a
I am adding 20 UIButton programmatically in UIVIew, what I have to do is

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.