UIView method called after drawRect

Is there a UIView method called after drawRect completes?

+4
source share
2 answers

No no. Why do you need such a method?

If you absolutely need it, you can always subclass UIView and override the drawRect message as follows:

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

Hope this helps.

+2
source

I think you are looking for viewDidAppear: Be sure to use the UIViewController .

0
source

Source: https://habr.com/ru/post/1305108/


All Articles