bug小结
aspect fill:拉伸变形
aspect fit fill:裁切拉伸居中
aspect fit:裁切
btn setimage
btn setbackgroundimage
- 两个异步的网络请求,他们之间有公共的变量需要访问,而出现了线程安全问题,比如分页的变量,比如存储的类型变量
- identify 回归原处
动画
- 移除动画
- 重新归位
-(void)beginAnimationView
{
self.guideView.hidden = NO;
[self.guideView.layer removeAllAnimations];
_guideView.frame = CGRectMake(0, kScreenHeight - tabHeight - _guideView.frame.size.height - 10, kScreenWidth, _guideView.frame.size.height);
[UIView beginAnimations:nil context:nil];
//设定动画持续时间
[UIView setAnimationDuration:0.8f];
[UIView setAnimationRepeatAutoreverses:YES];
[UIView setAnimationRepeatCount:10000];
[UIView setAnimationCurve:UIViewAnimationCurveLinear];
//动画的内容
_guideView.frame = CGRectMake(_guideView.frame.origin.x, kScreenHeight - tabHeight - _guideView.frame.size.height, _guideView.frame.size.width, _guideView.frame.size.height);
//动画结束
[UIView commitAnimations];
}