本系列所有开发文档翻译链接地址:

iOS7开发-Apple苹果iPhone开发Xcode官方文档翻译PDF下载地址



UIActivityIndicatorView
activityIndicatorViewStyle
设置指示器的样式
UIActivityIndicatorViewStyleWhiteLarge 
UIActivityIndicatorViewStyleWhite  (默认样式)
UIActivityIndicatorViewStyleGray   
2.hidesWhenStopped
当停止动画的时候,是否隐藏。默认为YES。
3. 实例化指示器对象,根据样式设置尺寸,不需要手动设置。
-(id)initWithActivityIndicatorStyle:(UIActivityIndicatorViewStyle)style;
4.开启动画 
- (void)startAnimating;
5.关闭动画
- (void)stopAnimating;
6.是否在动画
- (BOOL)isAnimating;

7. UIActivityIndicatorView使用注意
7.1初始化的时候不需要设置尺寸,设置尺寸也没有效果。
7.2 必须调用
startAnimating才会显示UIActivityIndicatorView
// 初始化指示器
//技术博客http://www.cnblogs.com/ChenYilong/   新浪微博http://weibo.com/luohanchenyilong  
    UIActivityIndicatorView *indicator = [[UIActivityIndicatorView alloc] initWithActivityIndicatorStyle:UIActivityIndicatorViewStyleWhiteLarge];
    // 设置指示器位置
    indicator.center = CGPointMake(self.view.frame.size.width * 0.5, self.view.frame.size.height * 0.5);
    // 开启动画,必须调用,否则无法显示
    [indicator startAnimating];
   
    [self.view addSubview:indicator];

 

//转载请注明出处--本文永久链接:http://www.cnblogs.com/ChenYilong/p/3495696.html

本文对应pdf文档下载链接,猛戳—>:https://www.evernote.com/shard/s227/sh/104f66d3-c781-4ace-a922-a640802ff7d2/b869cfa60eb6331a9b3234c53e414205

本系列所有开发文档翻译链接地址:iOS7开发-Apple苹果iPhone开发Xcode官方文档翻译PDF下载地址

最新文章

  1. C语言的傻瓜式随笔(一):嵌套循环-程序结构
  2. JavaScript 事件 编程练习
  3. C语言基础(1)-基本语法及注意事项
  4. C#将科大讯飞语音合成文件转换为MULAW音频格式
  5. 成都印迹婚纱摄影 | yinjilove.com
  6. 【BZOJ-3696】化合物 树形DP + 母函数(什么鬼)
  7. angularJs非空校验requied
  8. java.lang.NoClassDefFoundError: antlr/ANTLRException
  9. java窗口添加背景
  10. codeForce-19D Points (点更新+离散化)
  11. [JSOI2008] 完美的对称
  12. css案例学习之父子块的margin
  13. 2.2 sikuli中编程运行
  14. HDU 2188 悼念512汶川大地震遇难同胞——选拔志愿者(基础巴什博奕)
  15. sql备份文件兼容性问题
  16. php-msf 源码解读【转】
  17. IDEA 相关整理
  18. ubuntu 16.04 安装 opencv +contrib (3.2.0) + python 3.5
  19. 服务网关zuul之四:zuul网关配置
  20. hdu 2647 (拓扑排序 邻接表建图的模板) Reward

热门文章

  1. 第一、二章——Python简介与Python基础
  2. nginx 设置默认虚拟 host
  3. 【Docker 命令】- login 命令
  4. WDCP V3.2面板安装且新增PHP多版本和免费Let's Encrypt SSL证书
  5. Chromium之工程类别
  6. AngularJS 学习笔记--01
  7. [计算机网络] C++模拟telnet登陆SMTP服务发送邮件过程
  8. 在ios 上 按钮 disabled 样式显示异常
  9. WPF绑定到父元素的属性的方法
  10. CS6的安装与破解