Inherits from UIView
Conforms to LayoutAutosizing
TiProxyDelegate
Declared in TiUIView.h

Overview

Base class for all Titanium views.

Tasks

Properties

backgroundImage

Provides access to background image of the view.

@property (nonatomic, readwrite, retain) id backgroundImage

Declared In

TiUIView.h

proxy

Provides access to a proxy object of the view.

@property (nonatomic, readwrite, assign) TiProxy *proxy

Declared In

TiUIView.h

touchDelegate

Provides access to touch delegate of the view.

@property (nonatomic, readwrite, assign) UIView *touchDelegate

Discussion

Touch delegate is the control that receives all touch events.

Declared In

TiUIView.h

touchEnabled

Returns enablement of touch events.

@property (nonatomic, readonly) BOOL touchEnabled

Declared In

TiUIView.h

transformMatrix

Returns view’s transformation matrix.

@property (nonatomic, readonly) id transformMatrix

Declared In

TiUIView.h

Class Methods

throwException:subreason:location:

The convenience method to raise an exception for the view.

+ (void)throwException:(NSString *)reason subreason:(NSString *)subreason location:(NSString *)location

Parameters

reason

The exception reason.

subreason

The exception subreason.

location

The exception location.

Declared In

TiUIView.h

Instance Methods

animate:

Tells the view to start specified animation.

- (void)animate:(TiAnimation *)newAnimation

Parameters

newAnimation

The animation to start.

Declared In

TiUIView.h

animating

Returns current status of the view animation.

- (BOOL)animating

Return Value

YES if view is being animated, NO otherwise.

Declared In

TiUIView.h

backgroundImageLayer

Returns CA layer for the background of the view.

- (CALayer *)backgroundImageLayer

Declared In

TiUIView.h

configurationSet

Performs view’s configuration procedure.

- (void)configurationSet

Declared In

TiUIView.h

frameSizeChanged:bounds:

Tells the view that its frame and/or bounds has chnaged.

- (void)frameSizeChanged:(CGRect)frame bounds:(CGRect)bounds

Parameters

frame

The frame rect

bounds

The bounds rect

Declared In

TiUIView.h

hasTouchableListener

Whether or not the view has any touchable listeners attached.

- (BOOL)hasTouchableListener

Return Value

YES if the control has any touchable listener attached, NO otherwise.

Declared In

TiUIView.h

initializeState

Performs view’s initialization procedure.

- (void)initializeState

Declared In

TiUIView.h

interactionDefault

Returns default enablement for interactions.

- (BOOL)interactionDefault

Return Value

YES if the control has interactions enabled by default, NO otherwise.

Discussion

Subclasses may override.

Declared In

TiUIView.h

makeRootViewFirstResponder

Tells the view to make its root view a first responder.

- (void)makeRootViewFirstResponder

Declared In

TiUIView.h

setVirtualParentTransform:

Sets virtual parent transformation for the view.

- (void)setVirtualParentTransform:(CGAffineTransform)newTransform

Parameters

newTransform

The transformation to set.

Declared In

TiUIView.h

updateTouchHandling

Tells the view to update its touch handling state.

- (void)updateTouchHandling

Declared In

TiUIView.h