Properties
alwaysBounceHorizontal
@property(nonatomic) BOOL alwaysBounceHorizontal
alwaysBounceVertical
@property(nonatomic) BOOL alwaysBounceVertical
bounces
@property(nonatomic) BOOL bounces
bouncesZoom
@property(nonatomic) BOOL bouncesZoom
canCancelContentTouches @property(nonatomic) BOOL canCancelContentTouches
contentInset
@property(nonatomic) UIEdgeInsets contentInset
contentOffset
@property(nonatomic) CGPoint contentOffset
contentSize
@property(nonatomic) CGSize contentSize
decelerating
@property(nonatomic, readonly, getter=isDecelerating) BOOL
decelerating
decelerationRate
@property(nonatomic) float decelerationRate
delaysContentTouches
@property(nonatomic) BOOL delaysContentTouches
delegate
@property(nonatomic, assign)
id<UIScrollViewDelegate> delegate
directionalLockEnabled
@property(nonatomic, getter=isDirectionalLockEnabled
dragging
@property(nonatomic, readonly, getter=isDragging) BOOL dragging
indicatorStyle
@property(nonatomic) UIScrollViewIndicatorSty 说明这些常数
maximumZoomScale @property(nonatomic) float maximumZoomScale //此值确定多大的内容可以扩展。它必须大于最小缩放比例缩放才能启用。默认值是1.0 。 Discussion
minimumZoomScale
@property(nonatomic) float minimumZoomScale
pagingEnabled @property(nonatomic, getter=isPagingEnabled) BOOL pagingEnabled //如果这个属性的值是YES,当用户滚动时,滚动视图停止滚动视图的边界的倍数。默认值是NO 。
panGestureRecognizer @property(nonatomic, readonly) UIPanGestureRecognizer *panGestureRecognizer //你的应用程序访问此属性,当它希望能够通过滚动视图更精确地控制泛手势确认。
pinchGestureRecognizer
@property(nonatomic, readonly) UIPinchGestureRecognizer
scrollEnabled
@property(nonatomic, getter=isScrollEnabled) BOOL scrollEnabled
scrollIndicatorInsets
@property(nonatomic) UIEdgeInsets scrollIndicatorInsets
scrollsToTop
@property(nonatomic) BOOL scrollsToTop
showsHorizontalScrollInd
@property(nonatomic) BOOL showsHorizontalScrollInd
showsVerticalScrollIndic
@property(nonatomic) BOOL showsVerticalScrollIndic
tracking
@property(nonatomic, readonly, getter=isTracking) BOOL tracking
zoomBouncing
@property(nonatomic, readonly, getter=isZoomBouncing) BOOL
zoomBouncing //这个属性的值是YES如果滚动视图缩放回最小或最大变焦缩放值;否则值为NO
。
zooming
@property(nonatomic, readonly, getter=isZooming) BOOL zooming
zoomScale
@property(nonatomic) float zoomScale Instance Methods
flashScrollIndicators
- (void)flashScrollIndicators
scrollRectToVisible:animated:
- (void)scrollRectToVisible:(CGRect)rect animated:(BOOL)animated
参数:
rect
animated
setContentOffset:animated: - (void)setContentOffset:(CGPoint)contentOffset animated:(BOOL)animated 参数:
contentOffset
animated
setZoomScale:animated:
- (void)setZoomScale:(float)scale animated:(BOOL)animated
参数:
scale
animated
touchesShouldBegin:withEvent:inContentView:
- (BOOL)touchesShouldBegin:(NSSet *)touches withEvent:(UIEvent
*)event 参数:
touches
event
view
Return Value
touchesShouldCancelInCon
- (BOOL)touchesShouldCancelInCon 参数:
view
Return Value
zoomToRect:animated:
- (void)zoomToRect:(CGRect)rect animated:(BOOL)animated
rect
animated
Constants Scroll Indicator Style
typedef enum {
UIScrollViewIndicatorSty
UIScrollViewIndicatorSty
UIScrollViewIndicatorSty
} UIScrollViewIndicatorSty
Deceleration Constants
The rate of deceleration for a scrolling view.
{
const float UIScrollViewDeceleration
const float UIScrollViewDeceleration } |
|
来自: plumbiossom > 《代码》