Home > 2010 Fall DPS913 > DPS913 lecture notes Thu Sep 30

DPS913 lecture notes Thu Sep 30

September 30, 2010 Leave a comment Go to comments

We’ll discuss and study modal view controllers today, including alerts, action sheets, and custom modal views. Then, we’ll introduce the tab bar and navigation-based application styles, two iOS app design foundation styles.

.

Prepare for today’s class

Show up on time. Be alert and mentally agile. Be prepared to learn.

If you wish, you can look at some of the introductory readings in the DPS913 Virtual Textbook.

And, you can go through the digital content linked below.

.

Coming up in DPS913 / APD601

Mon Oct 4 – continue lecture topics, etc.

Thu Oct 7 – table view programming, in a nav-based app style

Mon Oct 11 – NO CLASS – Thanksgiving Day statutory holiday

Thu Oct 14 – Core Data technology introduction

.

Working with multiple view controllers

As a new iOS programmer, you have learned that the view controller is the foundational building block in an iOS app. It provides the app logic, and manages a view that shows a screenful of content.

In today’s lecture we will introduce modal view controllers, and you will learn how to work with more than one view controller in an app.

Then, we will learn how to work with larger numbers of view controllers. The iOS has two special-purpose controllers that help manage a number of view controllers: Tab Bar Controller, and Navigation Controller.

Both controllers manage an array of view controllers. If you use one of these controllers, it is defined and configured in MainWindow.xib. Then, we declare an outlet for it in the app delegate.

.

Modal view controller

A modal view controller presents its view content on top of a view. A modal view may appear as a result of a message or system event (e.g. an alert), or a message from your app (e.g. an action sheet), or a special-purpose full-screen of content.

Read the dedicated blog post for more details.

.

Tab Bar Controller

A tab bar controller manages an array of view controllers. Each element of the array – a view controller – is known and defined at design time. The app’s user has the ability to select and work with any view (with its backing view controller) at any time; there is no predefined usage sequence.

A typical tab bar app style is suitable for presenting different modes of, or tasks for, the app.

Read the dedicated blog post for more details.

.

Navigation Controller

A navigation controller manages an array of view controllers, but as a “stack” data structure (last in, first out). The “root” element of the array – a view controller – is known and defined at design time. The app enables a user to perform an action that causes another view + view controller to become active. The new view controller is added to the navigation controller array by adhering to stack principles: It gets “pushed” onto the stack, and when the user has finished working with the view, the user taps a “back” button on the left side of the navigation bar at the top of the screen, which causes the view controller to be “popped” off the stack.

A typical navigation-based app style enables a data and/or task hierarchy to be presented. Often, you will see this implemented as “drilling down” into deeper levels of data and/or task presentation.

Read the dedicated blog post for more details.

.

Example apps covered today

Alert Action

To Do Add

Fav Photo

Tab intro

Tab update

Nav Views

.

Blog posts for today’s class

Modal view controllers introduction

Tab bar app style introduction

Navigation-based app style introduction

.


Advertisements
Categories: 2010 Fall DPS913
  1. No comments yet.
  1. No trackbacks yet.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: