0

My application needs a notification in the view controller when I call bringSubviewToFront(). I tried viewDidAppear but it doesn't work (Obviously I shouldn't work because view is already in the stack). I have gone through the documentation of view & viewController but didn't find anything that can solve my problem. Is there any way to get view controller notified?

4

1 回答 1

1

您不会收到viewDidAppear通知bringSubviewToFront。当您将视图添加为子视图或更改视图的hidden属性时,它会被触发。您还必须确保您的 ViewController 已作为子视图控制器添加到其父级,使用 addChildViewController.

于 2013-01-07T21:09:03.073 回答