macOS/iOS API解説

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

目次

setIncrement:

ステッパーの増加量(減少量)をセットします
-(void)setIncrement:(double)increment:

解説

ステッパーの増加量(減少量)をセットします。
初期設定は1.0です。

返り値

( void )

なし

引数

( double )increment

増加量

フレームワーク

ApplicationKit

クラス

NSStepper

Instance Methods

使用可能

10.0

参照

- increment

例文

#import "MyObject.h"

@implementation MyObject

- (IBAction)myAction:(id)sender
{
//senderはstepper
[sender setIncrement:2.0];

NSLog([NSString stringWithFormat:@"%.1f",[sender increment]]);
}

@end