iPhone OS Reference Library Apple Developer Connection spyglass button

UIKit Data Types Reference

Framework
UIKit/UIKit.h
Declared in
UIDataDetectors.h
UIGeometry.h
UIInterface.h

Overview

The UIKit framework defines data types that are used in multiple places throughout the framework.

Data Types

UIBarStyle

Defines the stylistic appearance of different types of views.

typedef enum {
   UIBarStyleDefault          = 0,
   UIBarStyleBlack            = 1,
   
   UIBarStyleBlackOpaque      = 1, // Deprecated
   UIBarStyleBlackTranslucent = 2, // Deprecated
} UIBarStyle;
Constants
UIBarStyleDefault

Use the default style normally associated with the given view. For example, search bars and tool bars typically use a blue gradient background.

Available in iPhone OS 2.0 and later.

Declared in UIInterface.h.

UIBarStyleBlack

Use an opaque black style.

Available in iPhone OS 3.0 and later.

Declared in UIInterface.h.

UIBarStyleBlackOpaque

Deprecated. Use UIBarStyleBlack instead.

Available in iPhone OS 2.0 and later.

Declared in UIInterface.h.

UIBarStyleBlackTranslucent

Deprecated. Use UIBarStyleBlack and set the translucent property to YES instead.

Available in iPhone OS 2.0 and later.

Declared in UIInterface.h.

Availability
Declared In
UIInterface.h

UIDataDetectorTypes

Defines the types of information that can be detected in text-based content.

enum {
   UIDataDetectorTypePhoneNumber   = 1 << 0,
   UIDataDetectorTypeLink          = 1 << 1,
   
   UIDataDetectorTypeNone          = 0,
   UIDataDetectorTypeAll           = NSUIntegerMax
};
typedef NSUInteger UIDataDetectorTypes;
Constants
UIDataDetectorTypePhoneNumber

Detect strings formatted as phone numbers.

Available in iPhone OS 3.0 and later.

Declared in UIDataDetectors.h.

UIDataDetectorTypeLink

Detect strings formatted as URLs.

Available in iPhone OS 3.0 and later.

Declared in UIDataDetectors.h.

UIDataDetectorTypeNone

Do no data detection.

Available in iPhone OS 3.0 and later.

Declared in UIDataDetectors.h.

UIDataDetectorTypeAll

Detect all available types of data.

Available in iPhone OS 3.0 and later.

Declared in UIDataDetectors.h.

Availability
Declared In
UIDataDetectors.h

UIEdgeInsets

Defines inset distances for views.

typedef struct {
CGFloat top, left, bottom, right;
} UIEdgeInsets;
Discussion

Edge inset values are applied to a rectangle to shrink or expand the area represented by that rectangle. Typically, edge insets are used during view layout to modify the view’s frame. Positive values cause the frame to be inset (or shrunk) by the specified amount. Negative values cause the frame to be outset (or expanded) by the specified amount.

Availability
Declared In
UIGeometry.h


Last updated: 2009-02-17

Did this document help you? Yes It's good, but... Not helpful...