uikit

Getting started with uikit

Remarks#

This section provides an overview of what UIKit is, and why a developer might want to use it.

It should also mention any large subjects within UIKit, and link out to the related topics. Since the Documentation for UIKit is new, you may need to create initial versions of those related topics.

Installation or Setup

Detailed instructions on getting uikit set up or installed.

Using UIKit

UIKit is the iOS framework that implements the standard UI components for iOS applications.

Building an app with UIKit is trivially easy. In all cases you’ll use Xcode, Apple’s IDE for developing for iOS and macOS.

In Swift, you just put the statement

import UIKit

At the top of a each source file in your iOS application that uses the UIKit framework.

In Objective-C, your import statements should be prefixed with a #, and you need to provide both the name of the framework and the name of the header file that you are importing. For UIKit, the import looks like this;

#import <UIKit/UIKit.h>

(The angle brackets around the framework name and filename tell the compiler to look in the project’s frameworks directory rather than the project source directory.)


This modified text is an extract of the original Stack Overflow Documentation created by the contributors and released under CC BY-SA 3.0 This website is not affiliated with Stack Overflow