0

我遇到了这个问题,当我在 4.3 模拟器中运行此视图时会调用 -(void)viewWillDisappear:(BOOL)animated 方法,但在 5.0 及更多模拟器中运行应用程序时不会调用它。你能解释一下为什么吗?

4

1 回答 1

0

I have tried to replicate this but in my case its calling viewWillDisappear: in both cases (simulator4.3 and 5.0)This is what I have done

1> created new projected 2> added a UIbutton in viewWillAppear: 3> on btn clicked presenting new controller modally using presentModalVIewController:(BOOL)animated

every time it present new controller

it is calling viewWillDiappear:(BOOL)animated of parent controller

于 2012-07-26T15:08:27.313 回答