iphone - Modal view controller returning -


I have the following code where I display a view controller within a navigation controller. Just for testing, I display it for 3 seconds and then dismiss it. What is happening is that it is disappearing - and then it is manifesting again or again after each other. What am i doing wrong

  - (zero) test {[Disclaim myNavCtrl Model view controller Amount: Yes]; } - (zero) viewDidAppear: (BOOL) animated {MyViewController * ctrl = [[MyViewController alloc] init]; [Ctrl setDelegate: self]; MyNavCtrl = [[UINavigationController alloc] initWithRootViewController: ctrl]; [MyNavCtrl set ModelLransaction style: UimodalTransitionStyleCrossDissolve]; [Self current model view controller: myNavCtrl animated: no]; [Ctrl release]; [MyNavCtrl release]; [Self Performance Selector: Object with @Selector (Exam): After zero: 3]; }  

The controller is called every time viewWillAppear method The view appears, so you have created a loop. The scene appears, it calls a modal view that covers the calling view. When the modal view disappears, see the view of the Calling View ControllerApier again called salty, rinse, repeat


Comments