简体   繁体   English

从iOS应用程序的主菜单管理9-15视图的最佳方法是什么?

[英]What is the best way to manage 9-15 view from a main menu in an iOS app?

In my iPhone app, I must have around 9-15 different views, all available from a main menu. 在我的iPhone应用程序中,我必须有大约9-15个不同的视图,所有视图都可从主菜单中获得。 I started yesterday with a simple tab bar controllers, but they are only ideal with 6-7 views. 我昨天开始使用一个简单的标签栏控制器,但它们只适用于6-7个视图。 Which controller can I use? 我可以使用哪种控制器? Is there a nice one for my needs? 对我的需求有一个好的吗?

Edit : I am talking about around 9-15 menu-points for my application. 编辑 :我正在谈论我的应用程序大约9-15个菜单点。 Each point is a single, categorizable function. 每个点都是一个可分类的功能。 I though about something like the Facebook app, where the app shows 2 menu-pages (slideable) and 9 icons on each page, each with another view / function in it. 我喜欢Facebook应用程序,应用程序在每个页面上显示2个菜单页面(可滑动)和9个图标,每个页面都有另一个视图/功能。

look for cocoacontrols.com . 寻找cocoacontrols.com。 i think you will find your need there ..... 我想你会发现你的需要......

I think the component you are looking for(the same used in facebook app) is in the three20 library. 我认为您正在寻找的组件(在facebook应用程序中使用的组件)位于three20库中。 Its called Launcher. 它叫做发射器。 It's like having iphone springboard inside the app. 就像在应用程序内部安装iphone跳板一样。 I'd go with that. 我会顺其自然。

Can your views be split into categories? 您的观点可以分为几类吗? If so, I would suggest using the tab bar tabs as categories, and then using a table view as a menu in each tab. 如果是这样,我建议使用标签栏选项卡作为类别,然后使用表格视图作为每个选项卡中的菜单。

You could also try using a page control, but 9-15 views seems like they would be obnoxious to navigate with a page control. 您也可以尝试使用页面控件,但9-15个视图似乎对于使用页面控件进行导航是令人讨厌的。

I understand that you need to have access to those "views" all the time. 我知道您需要始终访问这些“视图”。 You can do what an iphone CNN app does. 你可以做iphone CNN应用程序的功能。 It uses horizontal scroll, where it has lot's of "views". 它使用水平滚动,它有很多“视图”。

This is propably the most challenging part of writing an app for mobile phones. 这可能是为手机编写应用程序最具挑战性的部分。 At least i find it not that easy to find the perfect user interface. 至少我发现找到完美的用户界面并不容易。 Espcially if you have so much content and navigation to show. 特别是如果你有这么多的内容和导航显示。

I think the best way to solve this problem is to write your own navigation. 我认为解决这个问题的最好方法是编写自己的导航。 If you want to use something similar like the facebook app - this is not so hard. 如果你想使用类似facebook应用程序的东西 - 这不是那么难。 Take a UIScrollView in combination with the UIPagingControl. 将UIScrollView与UIPagingControl结合使用。 Create a new View for your buttons or whatever you want your user to see and put it in the scroll view. 为您的按钮或您希望用户查看的任何内容创建一个新视图,并将其放在滚动视图中。 Enable paging for the UIScrollVIew and your almost done. 启用UIScrollVIew的分页,几乎完成了。 Maybe it's not the easiest way - but in the end it's the most flexible way. 也许这不是最简单的方法 - 但最终它是最灵活的方式。 You can decide what you want to show and you dont have to be dependent on what some other developer wrote. 您可以决定要显示的内容,而不必依赖其他开发人员所写的内容。 Just a thought :) 只是一个想法 :)

// Edit: Just read in another question about appLauncher. //编辑:请阅读有关appLauncher的其他问题 This might be such a control you are looking for. 这可能是您正在寻找的控制。

https://github.com/rigoneri/myLauncher https://github.com/rigoneri/myLauncher

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 iOS - 管理IBOutlets内存的最佳方法是什么? - iOS - What is best way to manage memory for IBOutlets? 2个类似的iOS应用程序-管理它们的最佳方法是什么? - 2 similar iOS apps - what's the best way to manage them? 从通用应用程序和转换iOS中的故事板的最佳方法是什么 - What is the best way from universal app and converting storyboard in ios 在iOS上查看大型PDF的最佳方式是什么? - What is the best way to view large PDFs on iOS? 将Twitter集成到iOS应用程序的最佳方法是什么? - What is the best way to integrate Twitter into an iOS app? facebook iOS应用程序的主菜单使用什么库? - What library is used for the main menu in the facebook iOS app? 当应用程序在单独的线程中在iOS中处于活动状态时,定期从服务器轮询数据的最佳方法是什么? - What is the best way to poll data periodically from server when app is active in iOS in a separate thread? 使用货币管理号码的最佳方法是什么? - What is the best way to manage number with currency? 从PHP获取数据到iOS应用程序的最佳方法是什么? - What's the best way to get data from PHP to an iOS-app? 在iOS应用程序中存储静态数据的最佳方法是什么? - What's the best way to store static data in an iOS app?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM