开发者

iPhone class diagram design

开发者 https://www.devze.com 2023-03-27 21:33 出处:网络
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.

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 s开发者_运维技巧ubclass of the stats view? Would I need a viewController for the tabs?

Thanks in advance


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.

0

精彩评论

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