1st: line imports UIKit (library we need to work with UI) 2nd line: @UIApplicationMain is attribute and shorthand for calling UIApplicationMain (makes AppDelegate the entry point) 3rd line: class AppDelegate declaration adopts: UIResponder (interface 4 objects, which handle events like "touchesBegan", "touchesMoved", "touchesEnded" "touchesCalled" UIApplicationDelegate which defines methods (below) which are called by "UIApplication" in reponse to important events in the lifetime of an app
Next we see optional window variable, which can help us create new Window programtically in didFinishLaunchingWithOptions()
Lastly, we can see a couple of another optional methods, which help us respond to certain events in the lifetime of an app. This means that you can remove them, but you still need to inherit from UIApplicationDelegate protocol.
applicationWillResignActive - app moves from active to inactive state (disable timer, pause game) applicationDidEnterBackground - save user data applicationWillEnter foreground - app moves from the background into active state applicationDidBecomeActive - restart paused tasks applicationWillTerminate - save data
Create tableView without storyboards
7.7.2018 - 1:28 flight from Kos first pure code tableView.
Create your own unique website with customizable templates.