NSMutableArray *marr = [[NSMutableArray alloc]initWithArray:self.navigationController.viewControllers];
for (UIViewController *vc in marr) {
if (vc == self) {
[marr removeObject:vc];
break; //break一定要加,不加有时候有bug
}
}
self.navigationController.viewControllers = marr;
从当前界面进入下下级界面
CreateQuNotiVController *vc1 = [[CreateQuNotiVController alloc] initQucikWithType:(TYCyclePagerCellTypeSMS) cache:NO];
vc1.hidesBottomBarWhenPushed = YES;
UIViewController *vc2 = [[NSClassFromString(@"GreetingCardViewController") alloc] init];
vc2.hidesBottomBarWhenPushed = YES;
[self.navigationController setViewControllers:@[self, vc2] animated:YES];
最后编辑于 :
©著作权归作者所有,转载或内容合作请联系作者
平台声明:文章内容(如有图片或视频亦包括在内)由作者上传并发布,文章内容仅代表作者本人观点,简书系信息发布平台,仅提供信息存储服务。