UIProgressViewStyle
typedef NS_ENUM(NSInteger, UIProgressViewStyle) {
UIProgressViewStyleDefault,
UIProgressViewStyleBar,
};
UIProgressViewStyleDefault 通常のスタイル
UIProgressViewStyleBar
例文
#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]; }
フレームワーク
UIKit
クラス
UIProgressView
Constants
使用可能
iOS 2.0