I am developing one application. In that I set the notification in viewcontroller1. And close the application.
After getting the notification I am directly going to viewcontroller1 xib not main xib. I written code like that. But my problem is after coming to viewcontroller1 xib,that contain the cancel button. When I click on cancel button I need to go to appdelegate class. But its not going. That cancel button is working when I come from appdelegate class. But its not working when I come directly to this class.
That cancel method contain [self.view dismissviewcontroller];, so please tell me how can I go to appdelegate class when I click on cancel button.
Get appdelegate object