开发者

iPhone app views logic

开发者 https://www.devze.com 2022-12-16 18:50 出处:网络
I have an iPhone app in development that requires three slides (views). The problem is, since I\'m kinda new to this, I\'m not sure what\'s the most logical way to approach this situation.

I have an iPhone app in development that requires three slides (views). The problem is, since I'm kinda new to this, I'm not sure what's the most logical way to approach this situation.

I was going to use a UINavigationController, but then I noticed that the UINavigationController is meant for hierarchical content, which means that it starts with a root controller which has the lowest level, and then views go child to child. But in my scenario, I have the main/root controller/view in the middle; and you can go to the left or right one, which would represent the middle one's children.

I could set the left view to be the root one, and quickly jump to the second/middle one; but this would be sort of a "hack" since I'm lying myself. Should I do that, or开发者_JAVA技巧 use a UITabBarController (haven't read too much about it), or something else?

Note that none of them will have their nav bar displayed since I want the navigation to be made through swipes.

Thanks!


You might want to try using the UIScroll in a paged mode and laying your views out on that (similar to how Photos works on the phone).

0

精彩评论

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