UIKit is Apple's framework for building applications for iOS, iPadOS, macOS, watchOS, and tvOS. This document provides an API reference for UIKit, including a detailed description of each class, method, and property available in the framework.

Classes

Here are some of the key classes available in UIKit:

  • UIView: The base class for all views that can be added to a user interface.
  • UIViewController: The base class for all view controllers, which manage the UI and behavior of a view.
  • UIApplication: The main class that represents the application itself.
  • UIBarButtonItem: A subclass of UIView that represents a button or image on a navigation bar or toolbar.

Properties

  • UIView.backgroundColor: The color with which the view is filled.
  • UIViewController.title: The title of the view controller, displayed in the navigation bar.
  • UIBarButtonItem.title: The title of the button or image.

Methods

  • UIView.viewDidLoad(): Called when the view is loaded into memory.
  • UIViewController.viewDidLoad(): Called when the view controller is loaded into memory.
  • UIBarButtonItem.setTitle(String): Sets the title of the button or image.

Resources

For more detailed information about UIKit, please refer to the official documentation.

UIKit Logo
UIView Class Diagram
UIBarButtonItem Example

Further Reading