//等待登陆菊花初始化:
UIActivityIndicatorView *ActivityIndicator = [[UIActivityIndicatorView alloc]initWithActivityIndicatorStyle:UIActivityIndicatorViewStyleWhite];
//设置菊花的中心点,貌似不能设置菊花的大小,系统自带的有三种样式 ActivityIndicator.center = CGPointMake(100, 100);
//添加菊花 [self.view addSubview:ActivityIndicator];
//在某个地方设置其 ,开始旋转动画 [ActivityIndicator startAnimating];
//菊花停止旋转 [ActivityIndicator stopAnimating]; //菊花隐藏 [ActivityIndicator setHidesWhenStopped:YES];