BNRAppDelegate
When Xcode created this project, it created a class named BNRAppDelegate. The “app delegate” is the starting point of an application, and every iOS application has one.
Open BNRAppDelegate.h. You can see that UIKit.h was imported by the template. UIKit is the framework that contains most of the iOS-specific classes, like UITableView, UITextField, and UIButton. Also notice that BNRAppDelegate is a subclass of UIResponder and conforms to the UIApplicationDelegate protocol.
BNRAppDelegate has one property that points to an instance of UIWindow. This object fills the screen of your iOS application. You add other objects (e.g., an instance of UIButton) to the window to create your application’s user interface.
In ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access