我已经将SVProgressHUD
实现到其他页面中。在此应用程序通知功能中存在。当我收到通知然后单击它打开主页时,请导航特定页面。在这种情况下,当我单击通知时,我想要显示SVProgressHUD
直到导航特定页面。我已经在" registerForPushNotification
"方法下实现了SVProgressHUD
功能,但它不起作用。它在导航到特定页面后正在工作。所以我不明白我该怎么办。请任何人帮助我。有可能吗?
在didfinishlaunchingwithoptions中,添加此:
//redirect to notification list if its from push notification click
NSMutableDictionary *notification = [launchOptions objectForKey:UIApplicationLaunchOptionsRemoteNotificationKey];
if (notification)
{
//this notification dictionary is same as your JSON payload whatever you gets from Push notification you can consider it as a userInfo dic in last parameter of method -(void)application:(UIApplication *)application didReceiveRemoteNotification:(NSDictionary *)userInfo
NSLog(@"%@",notification);
[SVProgressHUD showWithStatus:@"Please Wait"];
}
希望这会有所帮助;)