On my xcode project I have a some views and a tab bar controller. When I open my app the first view comes up. I have also a server that sends to the app some push notifications.
I use on AppDelegate.m
:
- (void)application:(UIApplication *)application
didReceiveRemoteNotification:(NSDictionary *)userInfo {
for (id key in userInfo) {
NSLog(@"key: %@, value: %@", key, [userInfo objectForKey:key]);
}
}
My question is: how can I open a specific view (in this case is called "AnswerDetailsVC
") when I open the notification? The specific view is opened from the 4th view on the tabbar.