码迷,mamicode.com
首页 > 移动开发 > 详细

iOS UIActivityIndicatorView

时间:2016-11-26 11:29:00      阅读:250      评论:0      收藏:0      [点我收藏+]

标签:center   start   bsp   tco   with   2.0   设置   enter   cgpoint   

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

标签:center   start   bsp   tco   with   2.0   设置   enter   cgpoint   

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

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!