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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 1, 20262026-06-01T00:40:36+00:00 2026-06-01T00:40:36+00:00

I have a view that has multiple views inside it, and an image presentation

  • 0

I have a view that has multiple views inside it, and an image presentation (aka. ‘cover flow’) into that too… And I need to take a screenshot programmatically!

Since docs say that "renderInContext:" will not render 3d animations :

"Important The Mac OS X v10.5 implementation of this method does not support the entire Core Animation composition model. QCCompositionLayer, CAOpenGLLayer, and QTMovieLayer layers are not rendered. Additionally, layers that use 3D transforms are not rendered, nor are layers that specify backgroundFilters, filters, compositingFilter, or mask values. Future versions of Mac OS X may add support for rendering these layers and properties."

source: https://developer.apple.com/library/mac/#documentation/graphicsimaging/reference/CALayer_class/Introduction/Introduction.html

I have searched a lot, and my ‘best’ solution (that is not good at all), is to create my own CGContext and record all CG animations into it. But I really do not want to do it, because I will need to re-write most of my animation codes and it will be very expensive for memory… I found other solutions (some of them unmakable) as use openGL or capture through AVSessions, but no one that can help me…

What are my options? Any with that problem?

  • 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-01T00:40:38+00:00Added an answer on June 1, 2026 at 12:40 am

    I got it working with protocols…. I’m implementing a protocol in all UIViews classes that make 3D transforms. So when I request a screenshot, it make all subviews screenshot, and generate one UIImage.. Not so good for lots of views, but I’m doing in a few views.

    #pragma mark - Protocol implementation 'TDITransitionCustomTransform'
    
    //Conforms to "TDITransitionCustomTransform" protocol, return currrent image view state , by current layer
    
    - (UIImage*)imageForCurrentState {
    
    //Make print
    
    UIGraphicsBeginImageContextWithOptions(self.bounds.size, NO, 0.0);
    
    [self.layer renderInContext:UIGraphicsGetCurrentContext()];
    
    UIImage *screenShot = UIGraphicsGetImageFromCurrentImageContext();
    
    UIGraphicsEndImageContext();
    
    //return printed image
    
    return screenShot;
    
    }
    

    I was thinking it may works now because I’m doing that render in the transformed view layer, which have being transformed it self…
    And it wasn’t working because “renderInContext:” doesn’t get layers of it subviews, may it possible ?

    Anyone interest in a bit more code of this solution, can be found here . in the apple dev forum.

    It may be a function bug, or it just not being design for this purpose …

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

Sidebar

Related Questions

I'm using MVC2 with VS2010 I have a view that has two partial views
I have a view controller class that has to implement several protocols. Too keep
I have an app that has a centre view with two views off to
I have the problem that my view controller class has too many delegates and
I have a very simple view that has a DropDownListFor and a Button inside
I have an XCode project I am working on that has multiple views controlled
I have a view that has a list of jobs in it, with data
I have a picker view that has a list of numbers to pick from.
I have an iPhone app that shows a simple view (View 1) that has
I have a navigation view with a cell that has something as simple as

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.