iPhone类图设计
我正在尝试为 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 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
据我了解,您想要的只是一个简单的标签栏应用程序。
您应该这样想:
UITabBarController
实例将为 3 个选项卡中的每一个保存 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:
UITabBarController
instance will hold 3 different view controllers for each of its 3 tabs.That's it.