开发者

iPhone: Multiple View (Screen) Management?

开发者 https://www.devze.com 2022-12-13 06:52 出处:网络
I\'m curious what the best method is for managing the traversal through several views without burning screen space using a navigation bar.

I'm curious what the best method is for managing the traversal through several views without burning screen space using a navigation bar.

As an example, assume I have four UIView's with associated UIViewController's:

1: Top level menu (invokes A or B.1)
1.A: Menu selection A (return to 1)
1.B.1: Menu selection B, part 开发者_运维百科1 (invokes B.2)
1.B.2: Menu selection B, part 2 (return to A)

First, I'm unsure if a navigation controller is appropriate when I am not using a navigation bar. As an alternative, I am considering implementing a custom UIViewController that holds view controllers and acts as a screen manager.

Thoughts?


You can always hide the navigation bar using setNavigationBarHidden:animated:

Other than that it depends on what type of app you are building. Yours sounds like something that could use a Tab Bar, although that doesn't solve your problem of taking up screen space.

XCode's templates offer another way to do it - try looking at a new project that is a "Utility" app. It shows how you can seamlessly switch between a couple of different screens.

0

精彩评论

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