UIView scale to 0 using CGAffineTransformMakeScale

前端 未结 3 1395
孤街浪徒
孤街浪徒 2021-02-20 16:22

Is it possible to scale a UIView down to 0 (width and height is 0) using CGAffineTransformMakeScale?

view.transform = CGAffineTransformMakeScale(0.0f, 0.0f);

Why w

3条回答
  •  故里飘歌
    2021-02-20 16:38

    you could try:

    CGAffineTransform transform = myView.transform;
    myView.transform = CGAffineTransformScale(transform. 0.0f, 0.0f);
    

    or inline the whole thing.

提交回复
热议问题