IFD:IOSDev/Projects/Andreas: Difference between revisions

From Medien Wiki
Line 68: Line 68:
This group contains all content specific controllers.
This group contains all content specific controllers.


'''ContentContainerController'''
'''ContentContainerController''' controls a contentContainer, which can have a TxtContentController, an ImgContentController, a DownloadContentController and the TopContentController, or subclasses of it.
Controller class which controls a contentContainer, which can have a TxtContentController, an ImgContentController, a DownloadContentController and the TopContentController, or subclasses of it.
It controls also the movement from one content (e.g. text) to an other content (e.g. the image list).
It controls also the movement from one content (e.g. text) to an other content (e.g. the image list).


'''ImpressumContainerController'''
'''ImpressumContainerController''' is a subclass of the ContentContainerController to show only the site notice (Impressum) of this app, which comes from the web server.
Is a subclass of the ContentContainerController to show only the site notice (Impressum) of this app, which comes from the web server.


'''TopContentController'''
'''TopContentController''' is the controller class, which shows the first view of  the ContentContainerController. It controls the display of the big images, the navigation between them and an overlay, which shows the title and the description, if the user taps on this image.
Its view is the first view which is visible in the ContentContainerController. It controls the display of the big images, the navigation between them and an overlay, which shows the title and the description, if the user taps on this image.


'''CampusMapTopController'''
'''CampusMapTopController''' is a subclass of the TopContentController to show the map of the Campus. For every building is a description, which is visible, if the user taps on the building.
Subclass of the TopContentController to show the map of the Campus. For every building is a description, which is visible, if the user taps on the building.


'''PinwallTopController'''
'''PinwallTopController''' is a subclass of the TopContentController in the menu point Mediathek (Media), to show some links to interesting web pages, which contains information about the university, e.g. links to social medie networks.
Subclass of the TopContentController in the menu point Mediathek (Media), to show some links to interesting web pages, which contains information about the university, e.g. links to social medie networks.


'''ProjectTopController'''
'''ProjectTopController''' is a subclass of the TopContentController in the menu point Mediathek (Media), to show some links to student projects.
Subclass of the TopContentController in the menu point Mediathek (Media), to show some links to student projects.


'''ContentController'''
'''ContentController''' is the base class for all contents, except the TopContent. Initialized the views with a background, a title, a close button and a button for the content. The screenshot called "Text view for the content container" shows three of them on the right of the ContentContainer.
Is the base class for all contents, except the TopContent. Initialized the views with a background, a title, a close button and a button for the content. The screenshot called "Text view for the content container" shows three of them on the right of the ContentContainer.


'''TxtContentController'''
'''TxtContentController''' shows rich formatted text in a UIWebView. This can be text, with some links inside, or the link list of this application. If a link is taped  it will inform its webDelegate to show the link in the TopWebView (see the section view for detail).
Shows rich formatted text in a UIWebView. This can be text, with some links inside, or the link list of this application. If a link is taped  it will inform its webDelegate to show the link in the TopWebView (see the section view for detail).


'''ImgContentController'''
'''ImgContentController''' shows a list of images in a table view. This class controls the tableView and is also the dataSource of the UiTableView. If the user taps on an item, this item will be visible in bog on the TopContentController.
Shows a list of images in a table view. This class controls the tableView and is also the dataSource of the UiTableView. If the user taps on an item, this item will be visible in bog on the TopContentController.
 
'''DownloadContentController''' is a subclass of the ImgContentController, but it shows different text and also selecting of an image does not rotate to the TopContentController. Instead it shows the content in the TopWebView.


'''DownloadContentController'''
Is a subclass of the ImgContentController, but it shows different text and also selecting of an image does not rotate to the TopContentController. Instead it shows the content in the TopWebView.
=== View group ===
=== View group ===


''ClockView''' shows the clock for some menu points and controls the minute and the hour hand.
''LoaderView''' shows the progress loader for menu items, if their content is not loaded and will be loaded.
''MenuItemView''' shows the red circle with the I in it and controls the tapping on this circle. If the user taps on one circle, the title of the menu item come visible. If the user taps on a menuItemView a second time, the root controller will be informed and the specific ContentContainerController will become visible.
''MenuItemDescriptionView''' shows only the title of the menu item.
''StartBtnView''' is the view for one image button, which is visible on the start point. Every StartBtnView shows a menu point for the app. If the user taps once on it, a description will be visible and if the user taps a second time on it, the rootController will be informed and will show the specific menu point.
''StarView''' shows the stars for some menu point at night. The stars have a small alpha animation, which is changing over the time.
''TopWebView''' shows almost every link inside the app in an UIWebView. It does not allow the user to get to a specific web page. You can only see pages and subpages of the specific link.
==== Animation group ====
Contains all views, which are menu point animations
''LivingCampusAnimationView''' shows basic animation, which are left to right or right to left animations. The object, which moves, can be a single image or an image sequence. Between every animation is a random time, which is given by the LivingCampusAnimation.
''LivingCampusCarAnimationView''' is a subclass of LivingCampusAnimationView. If a car reached 3/4 of the movement animation, this view will post a notification, which is not supported in the base class. The animation of a car must be started via a controller, because the feature to automatic animate the car after a random time is not supported.
''LivingCampusMultipleAnimationView''' shows a animation, which is divided in some smaller parts. E.g. a persons holds his hand to the top is one part, the persons moves one meter to the right is the second part and then the person moves one meter back to the left is the third part. Between every part is a random time, which is given by the LivingCampusMultipleAnimation.
''LivingCampusPathAnimationView''' shows an animation, which has a start, a middle and an end point, like the plane in the menu point Studium (Study), or the bird in the menu points Campus, Stadt (Town) and Freizeit (Freetime).
==== Content group ====
t.b.c.
=== Model group ===
=== Model group ===
t.b.c.