UIApplica'on • Manages the status bar and applica'on icon badge • Can open a URL, schedule a local no'fica'on, register for remote no'fica'ons • Manages all open windows (UIWindow) UIApplication *app = [UIApplication sharedApplication];
a UIApplica'onDelegate class. • It is through the applica'on delegate that you watch for UIApplica'on events. • application:didFinishLaunchingWithOptions • applicationDidBecomeActive • applicationWillEnterForeground • applicationWillResignActive • applicationDidEnterBackground • applicationWillTerminate
layer • What the user sees and interacts with • App data (e.g. Core Data) • Business logic • Intermediary between model and view • Receives and acts on control events
• Present login form (labels, buNons, etc.) • Tell controller if user submiNed the form • Stores user data • Provides interfaces for gePng user data • Decides what type of view to show • Waits for form submission, and uses model to validate login data
ê ç è Given the illustra'on on the lef, create an applica'on that moves a view (B) depending on the pressed buNon. Rules: • The View B should be created programma'cally. No Interface Builder!