开发者

Is it possible to push a view controller without navigation controller?

i've just started to write an application and i want to write it without navigation controller thereis going to be some viewController EX: aviewController , bviewController ...

Is it possible to push to b class's view controller (bviewController) from aViewController wiyhout using navigation controller ?

With otherwords ,

are there any different option for this code :

[self.navigationController pushViewController:self.bViewController animated:YES]; 开发者_如何学JAVA???


You could use a UINavigationController and push it, and hide the navigationbar.


Are you looking for this maybe?

    [self.bViewController.navigationController setNavigationBarHidden:YES animated:YES];


You display a Modal view:

 [self presentModalViewController:someViewController animated:YES];

The transition animation is set on the viewcontroller that you are going to display.

As @deanWombourne stated below, why don't you wan't to use the Navigation controller? If you are pushing viewcontrollers then the navigation controller is the way to go.

If you don't want the navigationbar you can just hide it and pop the view controller your self:

// Remove the current visible view controller:
[self.navigationController popViewControllerAnimated:YES];
0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜