IOS push页面后返回前几层控制器的方法

if([_fromViewControllerStrisEqualToString:@"JWDMemberManagerPayVC"]) {

       for(inti=0; i

          if([self.navigationController.viewControllers[i]isKindOfClass:[JWDMemberManagerPayVCclass]]) {

                [[NSNotificationCenterdefaultCenter]postNotificationName:@"cleakJWDMemberManagerPayData"object:nil];[self.navigationControllerpopToViewController:self.navigationController.viewControllers[i]animated:YES];return;

               }}

       }else{

       [self.navigationControllerpopViewControllerAnimated:YES];

     }

}

你可能感兴趣的:(IOS push页面后返回前几层控制器的方法)