macOS/iOS API解説

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

目次

initWithLevelIndicatorStyle:

指定された形式でレベルインジケーターセルを初期化します
-(id)initWithLevelIndicatorStyle:(NSLevelIndicatorStyle)levelIndicatorStyle:

解説

levelIndicatorStyleで指定されたスタイルでレシーバーを初期化します。
デフォルトの値、最小値はともに0.0です。
デフォルトの最大値はlevelIndicatorStyleに依存します。
【NSLevelIndicatorStyle】
●NSRelevancyLevelIndicatorStyle
 縦縞
●NSContinuousCapacityLevelIndicatorStyle
 連続した横長の棒スタイル
●NSDiscreteCapacityLevelIndicatorStyle
 区切りのある横長の棒スタイル
●NSRatingLevelIndicatorStyle
 iTunesのレートのような★5つスタイル
連続的なスタイルでは、デフォルトの最大値は100.0
連続していないスタイルではデフォルトの最大値は5.0です。

返り値

( id )

オブジェクト()

引数

( NSLevelIndicatorStyle )levelIndicatorStyle

フレームワーク

ApplicationKit

クラス

NSLevelIndicatorCell

Instance Methods

使用可能

10.4

参照

例文

NSLevelIndicatorCell *iCell2 = [[NSLevelIndicatorCell alloc] initWithLevelIndicatorStyle:NSRelevancyLevelIndicatorStyle ];