Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我是 iphone 开发新手。我正在创建一个地图应用程序。我想在单击“确定”以显示警报视图“您要加载当前位置”时旋转的活动指示器。由于此警报是由 ipod 默认提供的,我如何为其提供活动指示器?请帮帮我。请指导我。谢谢。
在您的委托中UIAlertView,UIAlertViewDelegate您可以进行如下调用以使活动指示器开始旋转:
UIAlertView
UIAlertViewDelegate
[[UIApplication sharedApplication] setNetworkActivityIndicatorVisible: YES];
然后,当您完成加载时,使用相同的调用停止活动指示器。