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

2017-12-27  本文已影响0人  花蕊1235

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

       for(inti=0; i<self.navogationController.viewControllers.count;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];

     }

}

上一篇下一篇

猜你喜欢

热点阅读