Friday, January 7, 2011

Fourth IPhone Application - UIViewController

Today, I learnt how to implement multiple views using the UIViewController by reading Chapter 7 of "Beginning iPhone SDK Programming with Objective-C
by Wei-Meng Lee"
.

In this chapter, Wei-Meng teaches the reader how to create a Window-based IPhone application creating a UIViewController that maps a View to a Window in two ways, using the Interface builder and using programming code.

The reader is also taught how to switch between two views as shown in my screenshots here. I took an entire morning to try out the code, as I kept missing steps here and there, but the feeling of accomplishment after seeing it run in the IPhone simulator makes me forget about my earlier anguish each time! ^.^

Initial appearance of application

Switches to this view when the "Ok" button in the first screen is clicked.
Conversely, will switch back to "Second View" when the "Click" button is clicked

No comments:

Post a Comment