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
UIEdgeInsetsZeroA
UIEdgeInsetsstruct whosetop,left,bottom, andrightfields 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
UIOffsetZeroA
UIOffsetstruct whosehorizontalandverticalfields are set to the value 0.Available in iOS 5.0 and later.
Declared in
UIGeometry.h.
Interface Builder Constants
Type qualifiers used by Interface Builder to synchronize with Xcode.
#define IBAction void #define IBOutlet #define IBOutletCollection(ClassName)
Constants
IBActionType 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 and later.
Declared in
UINibDeclarations.h.IBOutletIdentifier 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
@propertysyntax, see “Xcode Integration”.Available in iOS 2.0 and later.
Declared in
UINibDeclarations.h.IBOutletCollectionIdentifier used to qualify a one-to-many instance-variable declaration so that Interface Builder can synchronize the display and connection of outlets with Xcode. You can insert this macro only in front of variables typed as
NSArrayorNSMutableArray.This macro takes an optional ClassName parameter. If specified, Interface Builder requires all objects added to the array to be instances of that class. For example, to define a property that stores only
UIViewobjects, you could use a declaration similar to the following:@property (nonatomic, retain) IBOutletCollection(UIView) NSArray *views;
For additional examples of how to declare outlets, including how to create outlets with the
@propertysyntax, see “Xcode Integration”.Available in iOS 4.0 and later.
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.
© 2011 Apple Inc. All Rights Reserved. (Last updated: 2011-10-12)