How to call another class's method from my app delegate
Posted
by
Jared
on Stack Overflow
See other posts from Stack Overflow
or by Jared
Published on 2010-12-24T19:55:13Z
Indexed on
2010/12/25
6:54 UTC
Read the original article
Hit count: 241
I have an application that utilizes UILocalNotifications to pop-up UIAlertViews. When the notification fires, the user chooses to go into the app, and this method is called from my app delegate:
- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions {...}
Where I can handle it and where I also prompt another alertview for more information. So when the app launches, it is displaying view A, and then the alertview pops up and prompts for input. This alertview, however, is originating from my app delegate.
I need to be able to reload view A when the user hits Yes/No on the alertview. How can I do that from within my app delegate?
Any help is appreciated!!
© Stack Overflow or respective owner