7/7/2018 This file is created everytime you create new XCode project, but why? Let's take a look at why we need it. Delete Main.storyboard and got to app cababilities and set entry point to none.
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.