开发者

Iphone navigationalcontroller removing stack

开发者 https://www.devze.com 2023-01-02 00:31 出处:网络
How to remove Navigation controller from stack? When i push navigation controller it automatically get p开发者_如何学Pythonushed into stack, after starting new navigational controller i want previous

How to remove Navigation controller from stack?

When i push navigation controller it automatically get p开发者_如何学Pythonushed into stack, after starting new navigational controller i want previous controller to get remove from stack. thanks in advance.


found solution.

UINavigationController *navController = self.navigationController;
                MyEditViewController *mevc = [[MYEditViewController alloc] initWithGizmo: gizmo];

                NSMutableArray *controllers = [[self.navigationController.viewControllers mutableCopy] autorelease];
                [controllers removeLastObject];
                navController.viewControllers = controllers;
                [navController pushViewController:objRateAndReview animated: YES];
0

精彩评论

暂无评论...
验证码 换一张
取 消