iphone - how to move to next view controller after showing alertview -


I have an iPhone and I want that when alertview is displayed and the user presses OK < UIAlertView * alert = [[UIAlertView alloc] initWithTitle: @ "Thank you" message: @ "" Representative: cancel itselfTenTital: @ "OK" other button titles: zero]; [Alerts show]; [Warning issued]; Return; [Self-driven scenes]; - (empty) move {Main View Controller * Target Controller = [[Main View Controller Allocation] init]; [Self. Navigation controller Push ViewController: Animated Target Controller: Yes]; }

please UIAlertViewDelegate

  - (zero) Warning view: (UIAlertView *) Warning view clicked Button atindex: (Auto StepViewView) to move the index {// code to the next view; }  Note :  Note : Apply  UIAlertViewDelegate  in your interface. Also, after declaring the ULERTEView, the delegates set themselves Are there.  

Hope this helps you.

Comments