Git Product home page Git Product logo

Comments (5)

andresbrun avatar andresbrun commented on September 23, 2024

I don't know exactly what library have drawViewHierarchyInRect method, because it isn't a UIView class method. If you can indicates me that I will be very grateful.

from abcustomuinavigationcontroller.

Kry256 avatar Kry256 commented on September 23, 2024

Hi
(BOOL)drawViewHierarchyInRect:(CGRect)rect
is a new UIView method available only from iOS 7.
There will be also
(UIView *)snapshotView
(UIView *)resizableSnapshotViewFromRect:(CGRect)rect withCapInsets:(UIEdgeInsets)capInsets

from abcustomuinavigationcontroller.

andresbrun avatar andresbrun commented on September 23, 2024

Yeah! I can see them. I will include this changes in ios7 branch. Thanks!

from abcustomuinavigationcontroller.

andresbrun avatar andresbrun commented on September 23, 2024

I have testing this methods and it has the issue that If the view isn't added to any superview it can't be take a screenshot of it... :( If you get that please keep me in the loop!

from abcustomuinavigationcontroller.

Kry256 avatar Kry256 commented on September 23, 2024

Hi, I'm sorry but I've not yet "played" with these methods, I only knew its existence.
I think, if your issue is that you have to take a screenshot of a view without a superview, that you may proceed with a little trick.
You can put that view behind your scene (atIndex:0), so it is invisible to the user, take the snapshot and then remove the view.

from abcustomuinavigationcontroller.

Related Issues (19)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.