iPhone: viewWillAppear is not called for UIView
<p>I have created an UIView in my iPhone app. I want to handle something when user closes or opens when UIView is present as current screen. I thought, i can do this under <code>viewWillAppear:</code>. But, <code>viewWillAppear:</code> is not called in UIView. Does it work only on UIViewController? How can i handle <code>viewWillAppear:</code> or <code>viewDidAppear:</code> for an UIView?</p>

<p><strong>Update:</strong> UIView what I created everything through program, not in .xib.</p>

<p>Please advise.</p>

<p>Thanks!</p>
