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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 15, 20262026-05-15T15:44:47+00:00 2026-05-15T15:44:47+00:00

My situation is like this, I want to programmatically take a print screen of

  • 0

My situation is like this, I want to programmatically take a print screen of the current view visible to the user and save this to the photo album. The problem is that I don’t want all of the views in the hierarchy to be visible. My plan was to:

  1. Make a copy of the view hierarchy.
  2. Hide the subviews which were not interesting.
  3. Take the print screen.
  4. Save it to the photo album.

The problem is that I’m stuck on the first point. Since UIView does not implement the NSCopying protocol I can’t make a deep copy of the view hierarchy. I tried archiving and unarchiving the views but this was only available on the dektop.

As I see it there there are two options here:
a) Implement the NSCopying protocol on all the views and subviews.
b) Fade a white view covering the whole screen (sort of like the flash-effect when you take a print screen manually) and in that instant I hide the views I want.

Is there some other way of approaching this problem that I have missed?

Edit:

    UIGraphicsBeginImageContext([[wordManager mainWorkViewController] view].frame.size);  
    [[[[wordManager mainWorkViewController] view] layer] renderInContext:UIGraphicsGetCurrentContext()];   
    UIImage *screenshot = UIGraphicsGetImageFromCurrentImageContext();    
    UIGraphicsEndImageContext();

Best regards
//Abeansits

  • 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-15T15:44:48+00:00Added an answer on May 15, 2026 at 3:44 pm

    So, unfortunately no one was able to provide any help on this matter.
    How I solved the problem:

    I removed the elements which I did not want in the print screen. I did this using animations so there would be no graphical flicker. In the end it looked pretty good, to bad I never solved the original problem.

    Please post a fix if any one finds one.
    Best regards

    //Abeansits

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

Sidebar

Related Questions

I have a situation like this: start(); <Some code> end(); I want start() function
My situation is like this <p><img src=/media/118711/banner.jpg width=344 height=113 alt=Banner></p> I want to delete
I have situation like this: user submits form with action='/pay' in '/pay' I have
i have a situation like this public function loginAction(){ //my other code if(!empty($errorMessage)){ $this->view->assign('error',$errorMessage);
I often find myself in a situation like this: line i want to yank
I have situation like this: Range formulaCells = range.SpecialCells(XlCellType.xlCellTypeFormulas); And I want to iterate
I have a situation like this I want to add a UILabel next to
I have a situation like this. I have schema which has high level user
I have a situation like this. I have scrollpane whose viewportView is a JPanel
i have situation like this: class IData { virtual void get() = 0; virtual

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.