アラートウィンドウ消去方法

フォーラム(掲示板)ルール
フォーラム(掲示板)ルールはこちら  ※コードを貼り付ける場合は [code][/code] で囲って下さい。詳しくはこちら
まる

アラートウィンドウ消去方法

#1

投稿記事 by まる » 15年前

言語:obejective-c


UIAlertViewにてボタンなしのアラートウィンドウを作成したのですが
このウィンドウの消去方法がわかりません。
以下のコードで書いてますが表示されるけど消えない状況です。


アラートウィンドウを消すにはどうすればいいでしょうか?

UIAlertView *progressAlert = [[UIAlertView alloc]
initWithTitle:@""
message:@"Please wait..."
delegate:self
cancelButtonTitle:nil
otherButtonTitles:ni[/url];


progressView = [[[UIProgressView alloc]initWithProgressViewStyle:UIProgressViewStyleBa[/url] autorelease];

progressView.frame = CGRectMake(40.0f, 80.0f, 200.0f, 37.0f);

progressView.progress = progressvalue;


[progressAlert addSubview:progressView];

[progressAlert show];
[progressAlert release];


まる

Re:アラートウィンドウ消去方法

#3

投稿記事 by まる » 15年前

[alert dismissWithClickedButtonIndex:0 animated:FALSE]
をいれることで消えました。

ありがとうございました。

閉鎖

“C言語何でも質問掲示板” へ戻る