首页 > 其他 > 详细

bug小结

时间:2019-07-29 16:49:16      阅读:100      评论:0      收藏:0      [点我收藏+]

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];
}

bug小结

原文:https://www.cnblogs.com/guligei/p/11264320.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!