FrontPage > Apple > iOS開発メモ > Cocoa Touch Layer(UIKit) > UIScrollView
UIScrollView (スクロール・ビュー)†
リファレンス†
Apple リファレンス
UIView > UIResponder > NSObject
関連項目†
UIScrollViewDelegate
コンテンツ表示管理 (Managing the Display of Content)†
setContentOffset†
コンテンツ(content)の基準表示位置(offset:微調整)を設定。
- (void)setContentOffset:( CGPoint ) contentOffset animated:(BOOL) animated
(CGPoint)contentOffset | |
animated:(BOOL)animated | YES、NO |
contentOffset†
コンテンツ(content)の基準表示位置(offset:微調整)のプロパティ。
@property(nonatomic) CGPoint contentOffset
初期値 | CGPointZero |
TYPE | CGPoint |
contentSize†
コンテンツ(content)の表示サイズ(size)のプロパティ。
表示するコンテンツの最大サイズ(全ページの合計値)
@property(nonatomic) CGSize contentSize
contentInset†
コンテンツ(content)のインセット(inset:はめ込み)のプロパティ。
@property(nonatomic) UIEdgeInsets contentInset
スクロール管理 (Managing Scrolling)†
scrollEnabled†
スクロール可否用プロパティ。
@property(nonatomic, getter=isScrollEnabled) BOOL scrollEnabled
directionalLockEnabled†
スクロールの無効化? プロパティ。
@property(nonatomic, getter=isDirectionalLockEnabled) BOOL directionalLockEnabled
scrollsToTop†
スクロール・アップ機能プロパティ。
@property(nonatomic) BOOL scrollsToTop
YES | ステータス・バーのタップで画面の一番上を表示 |
NO | ステータス・バーのタップしても画面は移動しない |
scrollRectToVisible†
- (void)scrollRectToVisible:(CGRect)rect animated:(BOOL)animated
(CGRect)rect | |
animated:(BOOL)animated | YES、NO |
pagingEnabled†
ページ切り替えプロパティ。(前ページと次ページがピッタリくっつく)
@property(nonatomic, getter=isPagingEnabled) BOOL pagingEnabled
YES | ページをフリックするとページ切替する |
NO | ページをフリックするとフリックの移動量分ページが移動する |
bounces†
スクロールのバウンド(跳ね返り)設定用プロパティ。
@property(nonatomic) BOOL bounces
alwaysBounceVertical†
垂直スクロール時のバウンド(跳ね返り)プロパティ。
@property(nonatomic) BOOL alwaysBounceVertical
alwaysBounceHorizontal†
水平スクロール時のバウンド(跳ね返り)プロパティ。
@property(nonatomic) BOOL alwaysBounceHorizontal
touchesShouldBegin†
- (BOOL)touchesShouldBegin:(NSSet *)touches withEvent:(UIEvent *)event inContentView:(UIView *)view
(NSSet *)touches |
withEvent:(UIEvent *)event |
inContentView:(UIView *)view |
touchesShouldCancelInContentView†
- (BOOL)touchesShouldCancelInContentView:(UIView *)view
canCancelContentTouches†
コンテンツでのタッチの追跡可否のプロパティ。
@property(nonatomic) BOOL canCancelContentTouches
delaysContentTouches†
コンテンツでのタッチの遅延可否のプロパティ。
@property(nonatomic) BOOL delaysContentTouches
decelerationRate†
指スクロール操作後の原則率のプロパティ。
@property(nonatomic) float decelerationRate
初期値 | UIScrollViewDecelerationRateNormal |
dragging†
ドラッグを開始したかを取得するプロパティ。(読み取り専用)
@property(nonatomic, readonly, getter=isDragging) BOOL dragging
tracking†
操作中かどうかを取得するプロパティ。(読み取り専用)
@property(nonatomic, readonly, getter=isTracking) BOOL tracking
decelerating†
プロパティ。(読み取り専用)
@property(nonatomic, readonly, getter=isDecelerating) BOOL decelerating
スクロール間隔管理 (Managing the Scroll Indicator)†
indicatorStyle†
スクロール・インディケータ(ScrollIndicator)のスタイル用プロパティ。
@property(nonatomic) UIScrollViewIndicatorStyle indicatorStyle
初期値 | UIScrollViewIndicatorStyleDefault |
インディケータ・スタイル (UIScrollViewIndicatorStyle)†
UIScrollViewIndicatorStyleDefault | 標準 |
UIScrollViewIndicatorStyleBlack | 黒のインディケータ |
UIScrollViewIndicatorStyleWhite | 白のインディケータ |
scrollIndicatorInsets†
プロパティ。
@property(nonatomic) UIEdgeInsets scrollIndicatorInsets
showsHorizontalScrollIndicator†
水平スクロール・インディケータ(ScrollIndicator)の表示可否用プロパティ。
@property(nonatomic) BOOL showsHorizontalScrollIndicator
showsVerticalScrollIndicator†
垂直スクロール・インディケータ(ScrollIndicator)の表示可否用プロパティ。
@property(nonatomic) BOOL showsVerticalScrollIndicator
flashScrollIndicators†
少しの間、スクロール・インディケータ(ScrollIndicator)を表示する。
- (void)flashScrollIndicators
ズーム管理、パン管理 (Zooming and Panning)†
zoomToRect†
- zoomToRect:animated:
(CGRect)rect | |
animated:(BOOL)animated | YES、NO |
zoomScale†
プロパティ。
@property(nonatomic) float zoomScale
setZoomScale†
- setZoomScale:animated:
(float)scale | |
animated:(BOOL)animated | YES、NO |
maximumZoomScale†
プロパティ。
@property(nonatomic) float maximumZoomScale
minimumZoomScale†
プロパティ。
@property(nonatomic) float minimumZoomScale
zoomBouncing†
プロパティ。(読み取り専用)
@property(nonatomic, readonly, getter=isZoomBouncing) BOOL zoomBouncing
zooming†
プロパティ。(読み取り専用)
@property(nonatomic, readonly, getter=isZooming) BOOL zooming
bouncesZoom†
プロパティ。
@property(nonatomic) BOOL bouncesZoom
デリゲート管理 (Managing the Delegate)†
delegate†
デリゲート・プロパティ。
@property(nonatomic, assign) id< UIScrollViewDelegate > delegate
TYPE | id<UIScrollViewDelegate> |