UIKit Constants Reference

Framework
UIKit/UIKit.h
Declared in
UIGeometry.h
UINibDeclarations.h

Overview

This document describes constants that are used throughout the UIKit framework.

Constants

UIEdgeInsetsZero

Defines a set of edge insets where all of the values are 0.

extern const UIEdgeInsets UIEdgeInsetsZero;
Constants
UIEdgeInsetsZero

A UIEdgeInsets struct whose top, left, bottom, and right fields are all set to the value 0.

Available in iOS 2.0 and later.

Declared in UIGeometry.h.

UIOffsetZero

Defines an offset where all of the values are 0.

extern const UIOffset UIOffsetZero;
Constants
UIOffsetZero

A UIOffset struct whose horizontal and vertical fields are set to the value 0.

Available in iOS 5.0 and later.

Declared in UIGeometry.h.

UIRectEdge

Constants that specify the edges of a rectangle.

typedef enum : NSUInteger {
   UIRectEdgeNone   = 0,
   UIRectEdgeTop    = 1 << 0,
   UIRectEdgeLeft   = 1 << 1,
   UIRectEdgeBottom = 1 << 2,
   UIRectEdgeRight  = 1 << 3,
   UIRectEdgeAll = UIRectEdgeTop | UIRectEdgeLeft | UIRectEdgeBottom | UIRectEdgeRight
} UIRectEdge;
Constants
UIRectEdgeNone

No edge.

Available in iOS 7.0 and later.

Declared in UIGeometry.h.

UIRectEdgeTop

The top edge of the rectangle.

Available in iOS 7.0 and later.

Declared in UIGeometry.h.

UIRectEdgeLeft

The left edge of the rectangle.

Available in iOS 7.0 and later.

Declared in UIGeometry.h.

UIRectEdgeBottom

The bottom edge of the rectangle.

Available in iOS 7.0 and later.

Declared in UIGeometry.h.

UIRectEdgeRight

The right edge of the rectangle.

Available in iOS 7.0 and later.

Declared in UIGeometry.h.

UIRectEdgeAll

All edges of the rectangle.

Available in iOS 7.0 and later.

Declared in UIGeometry.h.

Discussion

You can add these constants together to specify multiple edges at the same time.

Interface Builder Constants

Type qualifiers used by Interface Builder to synchronize with Xcode.

#define IBAction void
#define IBOutlet
Constants
IBAction

Type qualifier used by Interface Builder to synchronize actions. Use this type as the return type of any action methods defined in your project. For examples of how to use this identifier, see “Xcode Integration”.

Available in iOS 2.0 through iOS 3.2.

Declared in UINibDeclarations.h.

IBOutlet

Identifier used to identify a property so Interface Builder can synchronize the display and connection of outlets with Xcode. Insert this identifier immediately before the type in any declarations. For examples, including how to use it with the @property syntax, see “Xcode Integration”.

Available in iOS 2.0 through iOS 3.2.

Declared in UINibDeclarations.h.

Discussion

For more information about how to use these constants, see “Communicating with Objects”. For information about defining and using actions and outlets in Interface Builder, see Interface Builder User Guide.