当前位置: 代码迷 >> Iphone >> 当iphone在loading比较多数据时,如何样让窗口显示等待图标
  详细解决方案

当iphone在loading比较多数据时,如何样让窗口显示等待图标

热度:60   发布时间:2016-04-25 06:22:10.0
当iphone在loading比较多数据时,怎么样让窗口显示等待图标
[[CCDirector sharedDirector]UIActivityIndicatorView *activityIndicator= [[UIActivityIndicatorView alloc]                             initWithFrame:CGRectMake(0.0f, 0.0f, 32.0f,32.0f)]; [activityIndicator setActivityIndicatorViewStyle:UIActivityIndicatorViewStyleGray]; [contentView addSubview:activityIndicator]; [activityIndicator startAnimating];        //loading data.....[activityIndicator stopAnimating];[activityIndicator release];

?

  相关解决方案