views:

125

answers:

2

Is there a UIView method that is called called after drawRect is completed?

+1  A: 

No, there isn't. What would you need a method like that for?

If you absolutely need this, you can always subclass UIView and override drawRect message like this:

- (void)drawRect:(CGRect)rect
{
   [super drawRect:rect];
   // do your stuff here
}

Hope it helps.

Pablo Santa Cruz
I want to resize the contentSize of the superview based on what is drawn.
LK
A: 

I think you're looking for viewDidAppear:. Make sure to use an UIViewController.

bddckr
The `UIView` equivalent is `-[UIView didMoveToSuperview]`
rpetrich