iPhone类图设计

发布于 2024-11-29 20:04:26 字数 488 浏览 0 评论 0原文

我正在尝试为 iPhone 应用程序设计一个类图。 iPhone 应用程序是一个基本应用程序,有几个不同的视图。它有主视图,它们在其中执行大部分功能。然后在一些视图中还有一些选项卡式视图和一些设置(我猜是子视图)。我在网上查找了有关如何设计此类 iPhone 应用程序的示例,但我只能找到这个:

http://www.mikeziray.com/tag/class-diagram/

我知道我必须拥有应用程序委托和主视图控制器。 mainView 基本上是第一个选项卡式窗格。然后是第二个选项卡,其中包含统计信息和信息,然后是另一个视图,显示您可以从统计视图访问的图表。我将如何根据此创建类图?我会为每个视图都有一个 viewController 吗?仅此而已吗? “子视图”是统计视图的子类吗?我需要一个用于选项卡的 viewController 吗?

提前致谢

I'm trying to design a class diagram for an iPhone application. The iPhone application is a basic app that has a couple of different views. It has the Main View, where they do most of the functions. Then there are a few more tabbed views and some settings (subviews I guess) within some views. I've looked online for examples on how to design such an iPhone app but I could only find this:

http://www.mikeziray.com/tag/class-diagram/

I know I have to have the app delegate and the mainviewcontroller. The mainView is basically the first tabbed pane. Then there's a second tab which holds stats and information and then there's another view which shows graphs which you can reach from the stats view. How would I go about creating a class diagram from this? Would I have a viewController for each of these views and then that's it? Would the "subview" be a subclass of the stats view? Would I need a viewController for the tabs?

Thanks in advance

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

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

发布评论

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

评论(1

划一舟意中人 2024-12-06 20:04:26

据我了解,您想要的只是一个简单的标签栏应用程序。

您应该这样想:

  1. 您的应用程序委托创建 UITabBarController
  2. 您的 UITabBarController 实例将为 3 个选项卡中的每一个保存 3 个不同的视图控制器。
  3. 这 3 个视图控制器将是您的 mainViewController/mainView(1° 选项卡)、statsViewController(2° 选项卡)和 graphViewController(3° 选项卡)。

就是这样。

From what I was able to understand all you want is a simple tab bar app.

Here is how you should think of it:

  1. Your App Delegate creates an instance of UITabBarController.
  2. Your UITabBarController instance will hold 3 different view controllers for each of its 3 tabs.
  3. Those 3 view controllers will be your mainViewController/mainView (1º tab), your statsViewController (2º tab) and your graphViewController (3º tab).

That's it.

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