TKMoveScreenEdgeGestureRecognizer Class Reference
| Inherits from | UIScreenEdgePanGestureRecognizer |
| Declared in | TKMoveScreenEdgeGestureRecognizer.h TKMoveScreenEdgeGestureRecognizer.m |
Overview
TKMoveScreenEdgeGestureRecognizer is a screen-edge-pan-gesture-recognizer built to move a view between certain locations.
Tasks
-
+ gestureWithAxis:movableView: -
+ gestureWithAxis:movableView:locations: -
+ gestureWithAxis:movableView:locations:moveHandler: -
– initWithAxis:movableView: -
– initWithAxis:movableView:locations: -
– initWithAxis:movableView:locations:moveHandler: -
moveHandlerproperty -
axisproperty -
movingproperty -
animatingproperty -
canMoveOutsideLocationBoundsproperty -
movableViewproperty -
locationsproperty -
snapBackAnimationproperty -
velocityDampingproperty -
– moveToPoint:
Properties
animating
A flag that indicates if the movable view is moving to a resting location.
@property (nonatomic, readonly) BOOL animatingDeclared In
TKMoveScreenEdgeGestureRecognizer.haxis
The directions the movable can go.
@property (nonatomic, readonly) TKMoveGestureAxis axisDeclared In
TKMoveScreenEdgeGestureRecognizer.hcanMoveOutsideLocationBounds
If YES, it keeps the view within the location bounds. Otherwise NO.
@property (nonatomic, assign) BOOL canMoveOutsideLocationBoundsDeclared In
TKMoveScreenEdgeGestureRecognizer.hlocations
Resting locations for the movable view.
@property (nonatomic, strong) NSArray *locationsDeclared In
TKMoveScreenEdgeGestureRecognizer.hmovableView
The view that the gesture will move.
@property (nonatomic, strong) UIView *movableViewDeclared In
TKMoveScreenEdgeGestureRecognizer.hmoveHandler
The callback of the gesture-recognizer.
@property (nonatomic, copy, setter=setMoveHandler, :) void ( ^ ) ( TKMoveScreenEdgeGestureRecognizer *gesture , CGPoint position , CGPoint location ) moveHandlerDeclared In
TKMoveScreenEdgeGestureRecognizer.hmoving
A flag that indicates if the gesture is active.
@property (nonatomic, readonly) BOOL movingDeclared In
TKMoveScreenEdgeGestureRecognizer.hClass Methods
gestureWithAxis:movableView:
Creates and returns a gesture recognizer to move a view between points.
+ (instancetype)gestureWithAxis:(TKMoveGestureAxis)axis movableView:(UIView *)movableViewParameters
- axis
The directions the movable can move in.
- movableView
The view that the gesture will move.
Return Value
A newly minted move-gesture-recognizer.
Declared In
TKMoveScreenEdgeGestureRecognizer.hgestureWithAxis:movableView:locations:
Creates and returns a gesture recognizer to move a view between points.
+ (instancetype)gestureWithAxis:(TKMoveGestureAxis)axis movableView:(UIView *)movableView locations:(NSArray *)locationsParameters
- axis
The directions the movable can move in.
- movableView
The view that the gesture will move.
Return Value
A newly minted move-gesture-recognizer.
Declared In
TKMoveScreenEdgeGestureRecognizer.hgestureWithAxis:movableView:locations:moveHandler:
Creates and returns a gesture recognizer to move a view between points.
+ (instancetype)gestureWithAxis:(TKMoveGestureAxis)axis movableView:(UIView *)movableView locations:(NSArray *)locations moveHandler:(void ( ^ ) ( TKMoveScreenEdgeGestureRecognizer *gesture , CGPoint position , CGPoint location ))blockParameters
- axis
The directions the movable can move in.
- movableView
The view that the gesture will move.
- locations
An array of locations that the view can move to. If the axis is X&Y, then the array should contain
NSValueobjects with aCGPoint. Otherwise, it should an array ofNSNumbers.
- block
A callback block for the gesture-recognizer.
Return Value
A newly minted move-gesture-recognizer.
Declared In
TKMoveScreenEdgeGestureRecognizer.hInstance Methods
initWithAxis:movableView:
Creates and returns a gesture recognizer to move a view between points.
- (instancetype)initWithAxis:(TKMoveGestureAxis)axis movableView:(UIView *)movableViewParameters
- axis
The directions the movable can move in.
- movableView
The view that the gesture will move.
Return Value
A newly minted move-gesture-recognizer.
Declared In
TKMoveScreenEdgeGestureRecognizer.hinitWithAxis:movableView:locations:
Creates and returns a gesture recognizer to move a view between points.
- (instancetype)initWithAxis:(TKMoveGestureAxis)axis movableView:(UIView *)movableView locations:(NSArray *)locationsParameters
- axis
The directions the movable can move in.
- movableView
The view that the gesture will move.
Return Value
A newly minted move-gesture-recognizer.
Declared In
TKMoveScreenEdgeGestureRecognizer.hinitWithAxis:movableView:locations:moveHandler:
Creates and returns a gesture recognizer to move a view between points.
- (instancetype)initWithAxis:(TKMoveGestureAxis)axis movableView:(UIView *)movableView locations:(NSArray *)locations moveHandler:(void ( ^ ) ( TKMoveScreenEdgeGestureRecognizer *gesture , CGPoint position , CGPoint location ))blockParameters
- axis
The directions the movable can move in.
- movableView
The view that the gesture will move.
- locations
An array of locations that the view can move to. If the axis is X&Y, then the array should contain
NSValueobjects with aCGPoint. Otherwise, it should an array ofNSNumbers.
- block
A callback block for the gesture-recognizer.
Return Value
A newly minted move-gesture-recognizer.
Declared In
TKMoveScreenEdgeGestureRecognizer.h