ページ 11

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

Posted: 2010年8月29日(日) 20:43
by まる
言語: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:アラートウィンドウ消去方法

Posted: 2010年8月29日(日) 21:52
by Justy

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

Posted: 2010年8月30日(月) 01:04
by まる
[alert dismissWithClickedButtonIndex:0 animated:FALSE]
をいれることで消えました。

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