Ilya Loshkarev loshkarev.i@gmail.com
SFEDU 2016
Background task must be declared in app preferences
Describes data and it's relations
Provides interface for data and user actions
Describes possible actions and reactions to events
Provides custom handlers for system events
Handles basic app operations
Stores main window of the app
Root view of the application
Stores View Stack
@UIApplicationMain
class AppDelegate: UIResponder, UIApplicationDelegate {
// Create new UIWindow
var window: UIWindow? = UIWindow(frame: UIScreen.mainScreen().bounds)
func application(application: UIApplication,
didFinishLaunchingWithOptions launchOptions: [NSObject: AnyObject]?) -> Bool {
// Create root ViewController
window!.rootViewController = UIViewController()
// Set window to handle input and show it
window!.makeKeyAndVisible()
return true
}
}
A scene represents an onscreen content area
A segue represents the transition from one scene
to the next scene
Storyboards allow to graphically lay out
the user’s path through your app