macOS/iOS API解説

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

目次

-initWithProgressViewStyle:

INDEX>UIKit>UIProgressView

指定したスタイルでプログレスビューを初期化して返します。
-(id)initWithProgressViewStyle:(UIProgressViewStyle)style

解説

返り値

( id )

引数

( UIProgressViewStyle )style

UIProgressViewStyle

UIProgressViewStyleDefault
UIProgressViewStyleBar

クラス

UIProgressView

使用可能

iOS2.0

参照

例文

#pragma mark UIProgressView initWithProgressViewStyle:
- (IBAction)method001:(id)sender {
    UIProgressView *progressView = [[UIProgressView alloc] initWithProgressViewStyle:UIProgressViewStyleDefault];
    CGRect frame = CGRectMake(self.view.center.x-100.0, self.view.center.y-16.0, 200.0, 32.0);
    progressView.frame = frame;
    
    [self.view addSubview:progressView];
}