views:

43

answers:

1

There is information that is only available after drawRect that I need to access when loading a UIView. Is there any way to do a "pre-draw" or offscreen in order to get this information earlier?

+1  A: 

The answer to this question is depends very much on what kind of information you want to get from the view.

Anyway: You can draw the view’s underlying layer into your own graphics context using [myView.layer renderIntoContext:myCtx]. That’s in the QuartzCore.framework.

Nikolai Ruhe