-
Book Overview & Buying
-
Table Of Contents
-
Feedback & Rating
Swift Essentials (Second Edition) - Second Edition
By :
All iOS views are rooted in an Objective-C class called UIView, which comes from the UIKit framework/module. The UIView class represents a rectangular space that may be associated with UIWindow or constructed to represent an off-screen view. Views that perform user interactions are generally subclasses of UIControl. Both UIView and UIViewController inherit from the UIResponder class, which in turn inherits from NSObject:

On Mac OS X, views are rooted in NSView and come from the AppKit framework. Otherwise, these two implementations are very similar. A new Xcode project will be used to create custom view classes. Create a new project called CustomViews that is based on the Tabbed Application template. To start with a blank sheet, delete the generated view controllers from the Main.storyboard and their associated FirstViewController and SecondViewController classes.
Change the font size
Change margin width
Change background colour