TiUIView Class Reference
Inherits from | UIView |
Conforms to | LayoutAutosizing TiProxyDelegate |
Declared in | TiUIView.h |
Tasks
-
– animating
Returns current status of the view animation.
-
proxy
Provides access to a proxy object of the view.
property -
touchDelegate
Provides access to touch delegate of the view.
property -
transformMatrix
Returns view’s transformation matrix.
property -
backgroundImage
Provides access to background image of the view.
property -
touchEnabled
Returns enablement of touch events.
property -
– backgroundImageLayer
Returns CA layer for the background of the view.
-
– animate:
Tells the view to start specified animation.
-
– initializeState
Performs view’s initialization procedure.
-
– configurationSet
Performs view’s configuration procedure.
-
– setVirtualParentTransform:
Sets virtual parent transformation for the view.
-
– updateTouchHandling
Tells the view to update its touch handling state.
-
– frameSizeChanged:bounds:
Tells the view that its frame and/or bounds has chnaged.
-
– makeRootViewFirstResponder
Tells the view to make its root view a first responder.
-
+ throwException:subreason:location:
The convenience method to raise an exception for the view.
-
– interactionDefault
Returns default enablement for interactions.
-
– hasTouchableListener
Whether or not the view has any touchable listeners attached.
-
– touchedContentViewWithEvent:
Whether or not a view not normally picked up by the Titanium view hierarchy (such as wrapped iOS UIViews) was touched.
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
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
touchedContentViewWithEvent:
Whether or not a view not normally picked up by the Titanium view hierarchy (such as wrapped iOS UIViews) was touched.
- (BOOL)touchedContentViewWithEvent:(UIEvent *)event
Return Value
YES if the view contains specialized content (such as a system view) which should register as a touch for this view, NO otherwise.
Declared In
TiUIView.h