iphone RootViewController 登录或菜单

发布于 2024-09-09 01:15:32 字数 275 浏览 0 评论 0原文

这是上一个问题的背景。我目前正在组装一个简单的社交网络 iPhone。对于我的问题,您可以认为该应用程序与 facebook iPhone 应用程序非常相似。

它基于导航模板,菜单视图是我的导航控制器的顶级视图控制器。用户需要登录才能使用该应用程序。

我只是想知道导航控制器是否应该是起始视图以及用户是否尚未登录(当用户登录时我将存储登录信息,以便他们下次打开应用程序时不必登录)以模态方式弹出登录页面。或者,如果登录页面应该是启动视图,并且登录时将创建登录控件并转到导航控件。

提前致谢

This is kind of on the back of a previous question. Im currently throwing together a simple social networking iphone. For my question you can think of the application to be quite similar to the facebook iphone app.

It is based off the navigation template and the menu view is the top level view controller for my navigation controller. The user needs to log in to use the application.

Im just wondering whether the navigation controller should be the starting view and if the user has not logged in (when the user logs in I will store the login information so that they do not have to login next time the open the app) than it will throw the login page up modally. Or if the login page should be the startup view and on login the login control will create and go to the navigation control.

Thanks in advance

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

下壹個目標 2024-09-16 01:15:32

如果用户需要在使用应用程序之前登录,那么以模式方式显示登录屏幕可能是显示第一个视图的最佳选择。

Apple 通过 iTunes Connect 应用程序来实现此目的,当您查看销售数据时可以使用该应用程序。它们在应用程序加载时显示黑屏,以模式方式显示登录屏幕,然后关闭视图以显示应用程序的内部结构。

另外,在您的情况下,当用户登录屏幕被关闭时,最好让导航控制器在后台准备好(即您可以在准备视图时使用活动指示器来延迟它)。它会给人一种响应更快的应用程序的印象

If the user needs to log in before using the application, then showing the login screen modally is probably the best bet for the first view that gets displayed.

Apple does this with their iTunes Connect app that is available when you go to view your sales data. They show a black screen while the app is loading, modally display the login screen, then dismiss the view to show the guts of the app.

Plus in your case it would be nice to have the navigation controller ready in the background by the time the user login screen gets dismissed (i.e. you could delay it with an activity indicator while readying the view). It would give the impression of a more responsive app

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文