1.UIActivityIndicatorView
常用方法:
isAnimating //是否在转(运行)
startAnimating //开始运行
endAnimating //结束运行
控件在xib里面属性:
Hides When Stopped 运行的时候是否隐藏
2.UIProgressView,NSTimer
Progress.progress
NSTimer *time = //初始化
[scheduleTimerWithTimerInterval:1.0 target:self selector:@selector(update) userInfo:nil repeats:YES];
//停止 time调用
//1秒调用1次,类似休眠1秒调用update方法 ,repeats表示重复调用
//相当于对线程封装的一个类
//android中子线程更新主线程中的事件。handler