I hope this is a simple question. I need to intercept didAddSubview, but will I need to subclass the UIView in order to override that method?
The UIView that I want to override is the UIViewController‘s view property, so I just want to know how to go about working with this.
Thanks!
From Apple
UIViewdocumentation (see Methods to Override):So, create your
UIViewsubclass and override the method. Then, say to yourUIViewControllerthat itsviewwill be the one you have subclassed. To achieve this there are a couple of ways:loadViewmethod and set theviewproperty to be your custom viewviewproperty inviewDidLoadHope that helps.