标签:
//初试旋转圈,并设置样式
UIActivityIndicatorView *aicv=[[UIActivityIndicatorView alloc]initWithActivityIndicatorStyle:UIActivityIndicatorViewStyleGray];
//设置位置
aicv.center=CGPointMake(160, 240);
//开始动画
[aicv startAnimating];
//结束动画
[aicv stopAnimating];
//状态栏现实旋转圈
[[UIApplication sharedApplication]setNetworkActivityIndicatorVisible:YES];
//动画结束并消失
aicv.hidesWhenStopped=YES;
//添加
[self.view addSubview:aicv];
标签:
原文地址:http://www.cnblogs.com/kyuubee/p/4804861.html