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)animatedYES、NO

contentOffset

コンテンツ(content)の基準表示位置(offset:微調整)のプロパティ。

@property(nonatomic) CGPoint contentOffset
初期値CGPointZero
TYPECGPoint

contentSize

コンテンツ(content)の表示サイズ(size)のプロパティ。
表示するコンテンツの最大サイズ(全ページの合計値)

@property(nonatomic) CGSize contentSize
初期値CGPointZero

contentInset

コンテンツ(content)のインセット(inset:はめ込み)のプロパティ。

@property(nonatomic) UIEdgeInsets contentInset
初期値UIEdgeInsetsZero

スクロール管理 (Managing Scrolling)

scrollEnabled

スクロール可否用プロパティ。

@property(nonatomic, getter=isScrollEnabled) BOOL scrollEnabled
初期値YES
YESスクロールする
NOスクロールしない

directionalLockEnabled

スクロールの無効化? プロパティ。

@property(nonatomic, getter=isDirectionalLockEnabled) BOOL directionalLockEnabled
初期値NO

scrollsToTop

スクロール・アップ機能プロパティ。

@property(nonatomic) BOOL scrollsToTop
初期値YES
TYPEBOOL
YESステータス・バーのタップで画面の一番上を表示
NOステータス・バーのタップしても画面は移動しない

scrollRectToVisible

- (void)scrollRectToVisible:(CGRect)rect animated:(BOOL)animated
(CGRect)rect
animated:(BOOL)animatedYES、NO

pagingEnabled

ページ切り替えプロパティ。(前ページと次ページがピッタリくっつく)

@property(nonatomic, getter=isPagingEnabled) BOOL pagingEnabled
初期値NO
YESページをフリックするとページ切替する
NOページをフリックするとフリックの移動量分ページが移動する

bounces

スクロールのバウンド(跳ね返り)設定用プロパティ。

@property(nonatomic) BOOL bounces
初期値YES

alwaysBounceVertical

垂直スクロール時のバウンド(跳ね返り)プロパティ。

@property(nonatomic) BOOL alwaysBounceVertical
初期値NO

alwaysBounceHorizontal

水平スクロール時のバウンド(跳ね返り)プロパティ。

@property(nonatomic) BOOL alwaysBounceHorizontal
初期値NO
 型 BOOL

touchesShouldBegin

- (BOOL)touchesShouldBegin:(NSSet *)touches withEvent:(UIEvent *)event inContentView:(UIView *)view
(NSSet *)touches
withEvent:(UIEvent *)event
inContentView:(UIView *)view

touchesShouldCancelInContentView

- (BOOL)touchesShouldCancelInContentView:(UIView *)view
(UIView *)view

canCancelContentTouches

コンテンツでのタッチの追跡可否のプロパティ。

@property(nonatomic) BOOL canCancelContentTouches
初期値UIEdgeInsetsZero

delaysContentTouches

コンテンツでのタッチの遅延可否のプロパティ。

@property(nonatomic) BOOL delaysContentTouches
初期値YES

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
初期値UIEdgeInsetsZero

showsHorizontalScrollIndicator

水平スクロール・インディケータ(ScrollIndicator)の表示可否用プロパティ。

@property(nonatomic) BOOL showsHorizontalScrollIndicator
初期値YES

showsVerticalScrollIndicator

垂直スクロール・インディケータ(ScrollIndicator)の表示可否用プロパティ。

@property(nonatomic) BOOL showsVerticalScrollIndicator
初期値YES

flashScrollIndicators

少しの間、スクロール・インディケータ(ScrollIndicator)を表示する。

- (void)flashScrollIndicators
なし

ズーム管理、パン管理 (Zooming and Panning)

zoomToRect

- zoomToRect:animated:
(CGRect)rect
animated:(BOOL)animatedYES、NO

zoomScale

プロパティ。

@property(nonatomic) float zoomScale
初期値1.0
TYPEfloat

setZoomScale

- setZoomScale:animated:
(float)scale
animated:(BOOL)animatedYES、NO

maximumZoomScale

プロパティ。

@property(nonatomic) float maximumZoomScale
初期値1.0

minimumZoomScale

プロパティ。

@property(nonatomic) float minimumZoomScale
初期値1.0

zoomBouncing

プロパティ。(読み取り専用)

@property(nonatomic, readonly, getter=isZoomBouncing) BOOL zoomBouncing
初期値NO

zooming

プロパティ。(読み取り専用)

@property(nonatomic, readonly, getter=isZooming) BOOL zooming
初期値NO

bouncesZoom

プロパティ。

@property(nonatomic) BOOL bouncesZoom
初期値YES

デリゲート管理 (Managing the Delegate)

delegate

デリゲート・プロパティ。

@property(nonatomic, assign) id< UIScrollViewDelegate > delegate
TYPEid<UIScrollViewDelegate>

メモ


トップ   編集 凍結 差分 履歴 添付 複製 名前変更 リロード   新規 一覧 検索 最終更新   ヘルプ   最終更新のRSS
Last-modified: 2010-08-11 (水) 14:43:32