1.[[UIScreen mainScreen] bounds] 和[UIScreen mainScreen] applicationFrame]的区别?
bounds就是屏幕的全部区域,applicationFrame就是app显示的区域,不包含状态栏
2.MBProgressHUD是替代UIProgressHUD的一个小工具, http://github.com/matej/MBProgressHUD
3.简单图片动画
- //初始时,将imageView的宽度设置为0,这样就隐藏起来了
- imageView = [[UIImageView alloc]initWithFrame:CGRectMake(0, 0, 0, desktop.size.height)];
- [imageView setImage:desktop];
- [self.view addSubview:imageView];
- //设置动画效果
- CGContextRef context = UIGraphicsGetCurrentContext();
- //开始播放动画
- [UIView beginAnimations:nil context:context];
- [UIView setAnimationCurve:UIViewAnimationCurveEaseInOut];
- //[UIView setAnimationCurve:UIViewAnimationCurveEaseIn];
- //[UIView setAnimationCurve:UIViewAnimationCurveEaseOut];
- //[UIView setAnimationCurve:UIViewAnimationCurveLinear];
- [UIView setAnimationDuration:1.5];
- //imageView最终的宽度为desktop.size.width
- [imageView setFrame:CGRectMake(0, 0, desktop.size.width, desktop.size.height)];
- [UIView commitAnimations];