TTScrollView Class Reference
Public Member Functions | |
| (void) | - setOrientation:animated: |
| (void) | - setZoomScale:animated: |
| A floating-point value that specifies the current zoom scale. | |
| (void) | - setZoomScale:withPoint:animated: |
| A floating-point value that specifies the current zoom scale. | |
| (UIView *) | - dequeueReusablePage |
| Gets a previously created page view that has been moved off screen and recycled. | |
| (void) | - reloadData |
| (UIView *) | - pageAtIndex: |
| (void) | - zoomToFit |
| (void) | - zoomToDistance: |
| (void) | - cancelTouches |
| Cancels any active touches and resets everything to an untouched state. | |
Protected Attributes | |
| NSInteger | _centerPageIndex |
| NSInteger | _visiblePageIndex |
| BOOL | _scrollEnabled |
| BOOL | _zoomEnabled |
| BOOL | _rotateEnabled |
| CGFloat | _pageSpacing |
| NSTimeInterval | _holdsAfterTouchingForInterval |
| UIInterfaceOrientation | _orientation |
| id< TTScrollViewDelegate > | _delegate |
| id< TTScrollViewDataSource > | _dataSource |
| NSMutableArray * | _pages |
| NSMutableArray * | _pageQueue |
| NSInteger | _maxPages |
| NSInteger | _pageArrayIndex |
| NSTimer * | _tapTimer |
| NSTimer * | _holdingTimer |
| NSTimer * | _animationTimer |
| NSDate * | _animationStartTime |
| NSTimeInterval | _animationDuration |
| UIEdgeInsets | _animateEdges |
| CGPoint | _inertiaSpeed |
| CGPoint | _renewPosition |
| CGFloat | _maximumZoomScale |
| CGFloat | _zoomScale |
| CGPoint | centerOfFingers |
| CGFloat | actualDistanceBetweenFingers |
| CGFloat | distanceBetweenFingers |
| CGFloat | _decelerationRate |
| UIEdgeInsets | _pageEdges |
| UIEdgeInsets | _pageStartEdges |
| UIEdgeInsets | _touchEdges |
| UIEdgeInsets | _touchStartEdges |
| NSUInteger | _touchCount |
| CGFloat | _overshoot |
| UITouch * | _touch1 |
| UITouch * | _touch2 |
| BOOL | _dragging |
| BOOL | _decelerating |
| BOOL | _zooming |
| BOOL | _executingZoomGesture |
| BOOL | _holding |
Properties | |
| NSInteger | centerPageIndex |
| The current page index. | |
| BOOL | zoomed |
| Whether or not the current page is zoomed. | |
| BOOL | zooming |
| A Boolean value that indicates whether the content view is currently zooming in or out. | |
| BOOL | holding |
| BOOL | decelerating |
| Returns whether the content is moving in the scroll view after the user lifted their finger. | |
| BOOL | scrollEnabled |
| YES | |
| BOOL | zoomEnabled |
| YES | |
| BOOL | rotateEnabled |
| YES | |
| CGFloat | pageSpacing |
| 40 | |
| UIInterfaceOrientation | orientation |
| NSInteger | numberOfPages |
| UIView * | centerPage |
| NSTimeInterval | holdsAfterTouchingForInterval |
| The number of seconds to wait before initiating the "hold" action. | |
| CGFloat | decelerationRate |
| A floating-point value that determines the rate of deceleration after the user lifts their finger. | |
| CGFloat | zoomScale |
| A floating-point value that specifies the current scale factor applied to the scroll view's content. | |
| CGFloat | maximumZoomScale |
| A floating-point value that specifies the maximum scale factor that can be applied to the scroll view's content. | |
| id< TTScrollViewDelegate > | delegate |
| id< TTScrollViewDataSource > | dataSource |
| NSDictionary * | visiblePages |
| A dictionary of visible pages keyed by the index of the page. | |
Member Function Documentation
| - (void) setZoomScale: | (CGFloat) | newScale | ||
| animated: | (BOOL) | animated | ||
A floating-point value that specifies the current zoom scale.
YES to animate the transition to the new scale, NO to make the transition immediate.
| - (void) setZoomScale: | (CGFloat) | newScale | ||
| withPoint: | (CGPoint) | withPoint | ||
| animated: | (BOOL) | animated | ||
A floating-point value that specifies the current zoom scale.
Specify one point to scale centering to him.
YES to animate the transition to the new scale, NO to make the transition immediate.
Specify one touch point, the scale occurrs centering to him.
YES to animate the transition to the new scale, NO to make the transition immediate.
Property Documentation
- (BOOL) decelerating [read, assign] |
Returns whether the content is moving in the scroll view after the user lifted their finger.
(read-only)
- (CGFloat) decelerationRate [read, write, assign] |
A floating-point value that determines the rate of deceleration after the user lifts their finger.
0.9
- (NSTimeInterval) holdsAfterTouchingForInterval [read, write, assign] |
The number of seconds to wait before initiating the "hold" action.
0
- (CGFloat) maximumZoomScale [read, write, assign] |
A floating-point value that specifies the maximum scale factor that can be applied to the scroll view's content.
4.0
- (BOOL) zooming [read, assign] |
A Boolean value that indicates whether the content view is currently zooming in or out.
(read-only)
The value of this property is YES if user is making a zoom gesture, otherwise it is NO
- (CGFloat) zoomScale [read, write, assign] |
A floating-point value that specifies the current scale factor applied to the scroll view's content.
The scale is animated by Default, use setZoomScale:animated: to control when is animated or not.
1.0
The documentation for this class was generated from the following files:
- Three20UI/Headers/TTScrollView.h
- Three20UI/Sources/TTScrollView.m
