UIAlertView在iPhone应用程序中动态显示 [英] UIAlertView Dynamically in iPhone App

查看:133
本文介绍了UIAlertView在iPhone应用程序中动态显示的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我希望在从Web服务加载数据时在其中显示动态UIAlertView和Indicator。
另外我不想在UIAlertView上有任何按钮。当数据成功加载时,它将自动停止。

I want to display dynamic UIAlertView and Indicator within it when data is loading from web-service. Also I don't want any button on UIAlertView. And it will be stopped automatically when data will be loaded successfully.

我该如何实现它。?

推荐答案

如果您正在使用WebView,则在ViewDidLoad中编写startAnimating ActivityIndi​​cator,此代理方法将在您加载数据时自行调用

If you are using WebView then write startAnimating ActivityIndicator in ViewDidLoad and this delegate method will call by itself when your data will be loaded

- (void)webViewDidFinishLoad:(UIWebView *)webView
{
   //[[UIApplication sharedApplication] setNetworkActivityIndicatorVisible:NO];
   [ActivityIndicator stopAnimating];    
}

希望有所帮助。谢谢:)

Hope it helps.Thanks :)

这篇关于UIAlertView在iPhone应用程序中动态显示的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆