macOS/iOS API解説

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

目次

startAnimation:

プログレスインジケータのアニメーションを開始します
-(void)startAnimation:(id)sender:

解説

プログレスインジケータのアニメーションを開始します。
床屋のポールのように動きます。
処理時間などが確定できないときなどに使います。
動く速さは- animationDelayでセットできます。

返り値

( void )

なし

引数

( id )sender

オブジェクト

フレームワーク

ApplicationKit

クラス

NSProgressIndicator

Instance Methods

使用可能

10.0

参照

- animationDelay
- stopAnimation:

例文

#import "MyObject.h"

@implementation MyObject

- (IBAction)button:(id)sender
{
[myOutlet setAnimationDelay:0.1];
[myOutlet startAnimation:sender];
    NSLog([NSString stringWithFormat:@"%f",[myOutlet animationDelay]]);
}

- (IBAction)slider:(id)sender
{
}

@end