美文网首页
理解模型树-呈现树-渲染树

理解模型树-呈现树-渲染树

作者: zaijianbali | 来源:发表于2022-05-31 15:42 被阅读0次

    ···

    • (void)testLayer{
      UIView *view = [[UIView alloc] init];
      view.backgroundColor = [UIColor orangeColor];
      view.frame = CGRectMake(0, 0, 50, 50);
      [self.view addSubview:view];
      [UIView animateWithDuration:5 animations:^{
      view.frame = CGRectMake(100, 100, 50, 50);
      }];
      //modelayer presentlayer
      NSLog(@"frame:%f",view.frame.origin.x);
      }
      ···

    相关文章

      网友评论

          本文标题:理解模型树-呈现树-渲染树

          本文链接:https://www.haomeiwen.com/subject/wtvzprtx.html