Inherits from TiProxy : NSObject
Conforms to LayoutAutosizing
Declared in TiViewProxy.h

Overview

The class represents a proxy that is attached to a view. The class is not intended to be overriden.

Tasks

Properties

children

Returns children view proxies for the proxy.

@property (nonatomic, readonly) NSArray *children

Declared In

TiViewProxy.h

layoutProperties

Provides access to layout properties of the underlying view.

@property (nonatomic, readonly, assign) LayoutConstraint *layoutProperties

Declared In

TiViewProxy.h

parent

Provides access to parent proxy of the view proxy.

@property (nonatomic, assign) TiViewProxy *parent

Declared In

TiViewProxy.h

parentVisible

Provides access to visibility of parent view proxy.

@property (nonatomic, readwrite, assign) BOOL parentVisible

Declared In

TiViewProxy.h

sandboxBounds

Provides access to sandbox bounds of the underlying view.

@property (nonatomic, readwrite, assign) CGRect sandboxBounds

Declared In

TiViewProxy.h

Instance Methods

add:

Tells the view proxy to add a child proxy.

- (void)add:(id)arg

Parameters

arg

A single proxy to add or NSArray of proxies.

Declared In

TiViewProxy.h

animate:

Tells the view proxy to run animation on its view.

- (void)animate:(id)arg

Parameters

arg

An animation object.

Declared In

TiViewProxy.h

animationCompleted:

Tells the view proxy that its view animation did complete.

- (void)animationCompleted:(TiAnimation *)animation

Parameters

animation

The completed animation

Declared In

TiViewProxy.h

canHaveControllerParent

Whether or not the view proxy can have a UIController object in its parent view.

- (BOOL)canHaveControllerParent

Return Value

YES if the view proxy can have a UIController object in its parent view

Discussion

Subclasses may override.

Declared In

TiViewProxy.h

childWillResize:

Tells the view that its child view size will change.

- (void)childWillResize:(TiViewProxy *)child

Parameters

child

The child view

Declared In

TiViewProxy.h

contentsWillChange

Tells the view proxy that the attached view contents will change.

- (void)contentsWillChange

Declared In

TiViewProxy.h

detachView

Tells the view proxy to detach its view.

- (void)detachView

Declared In

TiViewProxy.h

didFirePropertyChanges

Tells the view proxy that its properties are changed.

- (void)didFirePropertyChanges

Declared In

TiViewProxy.h

hide:

Tells the view proxy to set visibility on a child proxy to NO.

- (void)hide:(id)arg

Parameters

arg

A single proxy to hide.

Declared In

TiViewProxy.h

isUsingBarButtonItem

Whether or not the view proxy is using a bar button item.

- (BOOL)isUsingBarButtonItem

Return Value

YES if a bar button item is used, NO otherwise.

Declared In

TiViewProxy.h

langConversionTable

Returns language conversion table.

- (NSMutableDictionary *)langConversionTable

Return Value

The dictionary

Discussion

Subclasses may override.

Declared In

TiViewProxy.h

layoutChildren:

Tells the view to layout its children.

- (void)layoutChildren:(BOOL)optimize

Parameters

optimize

Internal use only. Always specify NO.

Declared In

TiViewProxy.h

layoutChildrenIfNeeded

Tells the view to layout its children only if there were any layout changes.

- (void)layoutChildrenIfNeeded

Declared In

TiViewProxy.h

makeViewPerformSelector:withObject:createIfNeeded:waitUntilDone:

Tells the view attached to the view proxy to perform a selector with given arguments.

- (void)makeViewPerformSelector:(SEL)selector withObject:(id)object createIfNeeded:(BOOL)create waitUntilDone:(BOOL)wait

Parameters

selector

The selector to perform.

object

The argument for the method performed.

create

The flag to create the view if the one is not attached.

wait

The flag to wait till the operation completes.

Declared In

TiViewProxy.h

newView

Returns a ne view corresponding to the view proxy.

- (TiUIView *)newView

Return Value

The created view.

Declared In

TiViewProxy.h

parentSizeWillChange

Tells the view proxy that the attached view’s parent size will change.

- (void)parentSizeWillChange

Declared In

TiViewProxy.h

parentViewForChild:

Returns parent view for child proxy.

- (UIView *)parentViewForChild:(TiViewProxy *)child

Parameters

child

The child view proxy for which return the parent view.

Return Value

The parent view

Discussion

The method is used in cases when proxies heirarchy is different from views hierarchy. Subclasses may override.

Declared In

TiViewProxy.h

parentWillHide

Tells the view proxy that the attached view’s parent will hide.

- (void)parentWillHide

Declared In

TiViewProxy.h

parentWillRelay

Tells the view proxy that the attached view’s parent will change position and size.

- (void)parentWillRelay

Declared In

TiViewProxy.h

parentWillShow

Tells the view proxy that the attached view’s parent will show.

- (void)parentWillShow

Declared In

TiViewProxy.h

refreshPosition

Tells the view proxy to force position refresh of the attached view.

- (void)refreshPosition

Declared In

TiViewProxy.h

refreshSize

Tells the view proxy to force size refresh of the attached view.

- (void)refreshSize

Declared In

TiViewProxy.h

relayout

Tells the view to adjust its size and position according to the current layout constraints.

- (void)relayout

Declared In

TiViewProxy.h

remove:

Tells the view proxy to remove a child proxy.

- (void)remove:(id)arg

Parameters

arg

A single proxy to remove.

Declared In

TiViewProxy.h

removeBarButtonView

Tells the view proxy to remove its bar button item.

- (void)removeBarButtonView

Declared In

TiViewProxy.h

shouldDetachViewOnUnload

Whether or not the view proxy should detach its view on unload.

- (BOOL)shouldDetachViewOnUnload

Return Value

YES if the view should be detached, NO otherwise.

Discussion

Subclasses may override.

Declared In

TiViewProxy.h

show:

Tells the view proxy to set visibility on a child proxy to YES.

- (void)show:(id)arg

Parameters

arg

A single proxy to show.

Declared In

TiViewProxy.h

supportsNavBarPositioning

Whether or not the view proxy supports navigation bar positioning.

- (BOOL)supportsNavBarPositioning

Return Value

YES if navigation bar positioning is supported, NO otherwise.

Discussion

Subclasses may override.

Declared In

TiViewProxy.h

suppressesRelayout

Whether or not the view proxy needs to suppress relayout.

- (BOOL)suppressesRelayout

Return Value

YES if relayout should be suppressed, NO otherwise.

Discussion

Subclasses may override.

Declared In

TiViewProxy.h

viewAttached

Whether or not a view is attached to the view proxy.

- (BOOL)viewAttached

Return Value

YES if the view proxy has a view attached to it, NO otherwise.

Declared In

TiViewProxy.h

viewDidAttach

Tells the view proxy that a view was attached to it.

- (void)viewDidAttach

Declared In

TiViewProxy.h

viewDidDetach

Tells the view proxy that a view was detached from it.

- (void)viewDidDetach

Declared In

TiViewProxy.h

viewInitialized

Whether or not the view proxy has been initialized.

- (BOOL)viewInitialized

Return Value

YES if the view proxy has been initialized, NO otherwise.

Declared In

TiViewProxy.h

viewReady

Whether or not the view proxy has been completely set up.

- (BOOL)viewReady

Return Value

YES if the view proxy has been initialized and its view has a superview and non-empty bounds, NO otherwise.

Declared In

TiViewProxy.h

viewWillAttach

Tells the view proxy that a view will be attached to it.

- (void)viewWillAttach

Declared In

TiViewProxy.h

viewWillDetach

Tells the view proxy that a view will be detached from it.

- (void)viewWillDetach

Declared In

TiViewProxy.h

willChangeLayout

Tells the view proxy that the attached view layout will change.

- (void)willChangeLayout

Declared In

TiViewProxy.h

willChangePosition

Tells the view proxy that the attached view position will change.

- (void)willChangePosition

Declared In

TiViewProxy.h

willChangeSize

Tells the view proxy that the attached view size will change.

- (void)willChangeSize

Declared In

TiViewProxy.h

willChangeZIndex

Tells the view proxy that the attached view z-index will change.

- (void)willChangeZIndex

Declared In

TiViewProxy.h

willEnqueue

Puts the view in the layout queue for rendering.

- (void)willEnqueue

Declared In

TiViewProxy.h

willFirePropertyChanges

Tells the view proxy that its properties are about to change.

- (void)willFirePropertyChanges

Declared In

TiViewProxy.h

willHide

Tells the view proxy that the attached view will hide.

- (void)willHide

Declared In

TiViewProxy.h

willShow

Tells the view proxy that the attached view will show.

- (void)willShow

Declared In

TiViewProxy.h

windowDidClose

Tells the view proxy that the attached window did close.

- (void)windowDidClose

Declared In

TiViewProxy.h

windowDidOpen

Tells the view proxy that the attached window did open.

- (void)windowDidOpen

Declared In

TiViewProxy.h

windowHasOpened

Whether or not a window attached to the view proxy has been opened.

- (BOOL)windowHasOpened

Return Value

YES if the view proxy’s window has been opened, NO otherwise.

Declared In

TiViewProxy.h

windowIsOpening

Whether or not a window attached to the view proxy is currently being opened.

- (BOOL)windowIsOpening

Return Value

YES if the view proxy’s window is being opened, NO otherwise.

Declared In

TiViewProxy.h

windowWillClose

Tells the view proxy that the attached window will close.

- (void)windowWillClose

Declared In

TiViewProxy.h

windowWillOpen

Tells the view proxy that the attached window will open.

- (void)windowWillOpen

Declared In

TiViewProxy.h