macOS/iOS API解説

iOS , Mac アプリケーション開発のために使われる主要フレームワークの日本語情報です。2010年代に書かれた内容です。今後更新はありません。

目次

UISliderクラス

スライダーのクラスです。
継承 UIControl : UIView : UIResponder : NSObject
準拠 NSCoding
NSCoding (UIView)
NSObject (NSObject)
フレームワーク /System/Library/Frameworks/UIKit.framework
使用可能 iPhoneOS2.0
定義 UISlider.h

概要

参照

タスク

Accessing the Slider’s Value
value property
– setValue:animated:

スライダー値のリミットへのアクセス

minimumValue property
maximumValue property

スライダーの挙動の修正

continuous property

スライダーアピアランスの変更

minimumValueImage property
maximumValueImage property
currentMinimumTrackImage property
– minimumTrackImageForState:
– setMinimumTrackImage:forState:
currentMaximumTrackImage property
– maximumTrackImageForState:
– setMaximumTrackImage:forState:
currentThumbImage property
– thumbImageForState:
– setThumbImage:forState:

サブクラスでオーバーライド

– maximumValueImageRectForBounds:
– minimumValueImageRectForBounds:
– trackRectForBounds:
– thumbRectForBounds:trackRect:value: