开发者

what is the 'transform' vector that appear in xcode console when printing object?

开发者 https://www.devze.com 2023-02-02 19:28 出处:网络
I\'m inspecting a UIView after rotation. So while debugging, i go to console and type print-object [self view]

I'm inspecting a UIView after rotation. So while debugging, i go to console and type

print-object [self view]

and i get

<UIView: 0x4b14e40; frame = (0 0; 748 1024); transform = [0, 1, -1, 0, 0, 0]; autoresize = W+H; layer = <CALayer: 0x4b16ea0>>
开发者_如何学Python

so i noticed the 'transform' vector. But i couldn't find what does it mean. and if it's related to the orientation changes and rotation taking place.And if so, what does represent each number? it seems like a translation matrix but 6 variables? Thanks.


It means that your view suffered a transformation, like rotation, translations, scale. For more information see the method

CGAffineTransform CGAffineTransformMake(CGFloat a, CGFloat b, CGFloat c, CGFloat d, CGFloat tx, CGFloat ty)
0

精彩评论

暂无评论...
验证码 换一张
取 消