首页 > 移动平台 > 详细

iOS UIActivityIndicatorView

时间:2016-11-26 11:26:51      阅读:114      评论:0      收藏:0      [点我收藏+]

UIActivityIndicatorView *indicator = [[UIActivityIndicatorView alloc] initWithActivityIndicatorStyle:UIActivityIndicatorViewStyleWhiteLarge];
    
    // 设置位置???颜色等
    indicator.tintColor = [UIColor greenColor];
    indicator.color = [UIColor greenColor];
    indicator.backgroundColor = [UIColor blackColor];
    indicator.center = CGPointMake(30, 30);
    indicator.layer.cornerRadius = 18.5;
    indicator.layer.masksToBounds = YES;
    
    UITableViewCell * cell = (UITableViewCell *)[collectionView cellForItemAtIndexPath:indexPath];
    
    [cell addSubview:indicator];
    //开始
    [indicator startAnimating];

  //停止
    [indicator stopAnimating];

 

  UIActivityIndicatorViewStyleWhiteLarge的尺寸是(3737
  UIActivityIndicatorViewStyleWhite的尺寸是(2222

iOS UIActivityIndicatorView

原文:http://www.cnblogs.com/yujidewu/p/6103724.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!