通知バーの通知をクリックした後、その特定のクラスの後に特定のクラスに移動したい場合は、戻るボタンをクリックすると前の要件に移動する必要があります。ViewControllersをスタックに追加してポップバックする必要がある場合
誰でも助けてください。
私はこのように
(BOOL)アプリケーションスタックにViewControllerをを追加しました:(のUIApplication *)アプリケーションdidFinishLaunchingWithOptions:(NSDictionaryの*)launchOptions { UIStoryboard * mainStoryboard = [UIStoryboard storyboardWithName: "メイン" @をバンドル:nil];
SplashViewController * splashViewCon =(SplashViewController *)[mainStoryboard instantiateViewControllerWithIdentifier:@ "SplashId"];
AgreeViewController * agreeViewCon =(AgreeViewController *)[mainStoryboard instantiateViewControllerWithIdentifier:@ "agreeView"];
ViewController * loginViewCon =(ViewController *)[mainStoryboard instantiateViewControllerWithIdentifier:@ "loginView"];
LanguageViewController * languageViewCon =(LanguageViewController *)[mainStoryboard instantiateViewControllerWithIdentifier:@ "languageView"];
LandingScreenViewController * landingViewCon =(LandingScreenViewController *)[mainStoryboard instantiateViewControllerWithIdentifier:@ "landingScreenId"];
HomeScreenViewController * homeViewCon =(HomeScreenViewController *)[mainStoryboard instantiateViewControllerWithIdentifier:@ "homeScreen"];
OrderConfirmationViewController * orderconfirmViewCon =(OrderConfirmationViewController *)[mainStoryboard instantiateViewControllerWithIdentifier:@ "orderConfirmationVC"];
ThankYouViewController * thankViewCon =(ThankYouViewController *)[mainStoryboard instantiateViewControllerWithIdentifier:@ "ThankyouId"];
UploadQueueScreenViewController * uploadViewCon =(UploadQueueScreenViewController *)[mainStoryboard instantiateViewControllerWithIdentifier:@ "uploadQueue"];
NewOrderViewController * newOrderViewCon =(NewOrderViewController *)[mainStoryboard instantiateViewControllerWithIdentifier:@ "neworderView"];
MessageViewController * msgViewCon =(MessageViewController *)[mainStoryboard instantiateViewControllerWithIdentifier:@ "MessageInboxscreen"];
MessageDetailsViewController * msgdetailsViewCon =(MessageDetailsViewController *)[mainStoryboard instantiateViewControllerWithIdentifier:@ "msgDetailsView"];
NSArray * stack = [NSArray arrayWithObjects:splashViewCon、agreeViewCon、loginViewCon、languageViewCon、landingViewCon、homeViewCon、orderconfirmViewCon、thankViewCon、uploadViewCon、newOrderViewCon、msgViewCon、msgdetailsViewCon、nil]; navController。viewControllers =スタック;
UILocalNotification *通知= [launchOptions objectForKey:UIApplicationLaunchOptionsLocalNotificationKey]。
場合(通知) {MessageDetailsViewController * msgdetailsViewCon =(MessageDetailsViewController *)[mainStoryboard instantiateViewControllerWithIdentifier: "msgDetailsView" @]。 ; self.window.rootViewController = msgdetailsViewCon; }}
だから、私は何の汎用クラスavaialbeはありません知っている限り、特定のViewController
に戻っ
**通知バーは、ここで**何ですか? –
はい、通知バー – vani
[最小動作例](http://stackoverflow.com/help/mcve)を入力してください。 – buhtz